Skip to content

Commit

Permalink
hostapd: fix undeclared variable iface_name
Browse files Browse the repository at this point in the history
Signed-off-by: Nazar Mokrynskyi <[email protected]>
  • Loading branch information
nazar-pc authored and nbd168 committed Nov 19, 2023
1 parent b107684 commit 684d1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/network/services/hostapd/files/hostapd.uc
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,12 @@ function iface_reload_config(phydev, config, old_config)
return false;
let iface = hostapd.interfaces[phy];
let iface_name = old_config.bss[0].ifname;
if (!iface) {
hostapd.printf(`Could not find previous interface ${iface_name}`);
return false;
}
let iface_name = old_config.bss[0].ifname;
let first_bss = hostapd.bss[iface_name];
if (!first_bss) {
hostapd.printf(`Could not find bss of previous interface ${iface_name}`);
Expand Down

0 comments on commit 684d1a5

Please sign in to comment.