Signed-off-by: Nazar Mokrynskyi <nazar@mokrynskyi.com>
return false;
let iface = hostapd.interfaces[phy];
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;
}
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}`);
let first_bss = hostapd.bss[iface_name];
if (!first_bss) {
hostapd.printf(`Could not find bss of previous interface ${iface_name}`);