hostapd: fix an exception in hostapd.uc on interface add failure
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
5b8f188c0f
commit
12c8bba731
1 changed files with 1 additions and 1 deletions
|
@ -128,6 +128,7 @@ function __iface_pending_next(pending, state, ret, data)
|
||||||
let config = pending.config;
|
let config = pending.config;
|
||||||
let phydev = pending.phydev;
|
let phydev = pending.phydev;
|
||||||
let phy = pending.phy;
|
let phy = pending.phy;
|
||||||
|
let bss = config.bss[0];
|
||||||
|
|
||||||
if (pending.defer)
|
if (pending.defer)
|
||||||
pending.defer.abort();
|
pending.defer.abort();
|
||||||
|
@ -140,7 +141,6 @@ function __iface_pending_next(pending, state, ret, data)
|
||||||
pending.call("wpa_supplicant", "phy_set_macaddr_list", { phy: phy, macaddr: macaddr_list });
|
pending.call("wpa_supplicant", "phy_set_macaddr_list", { phy: phy, macaddr: macaddr_list });
|
||||||
return "create_bss";
|
return "create_bss";
|
||||||
case "create_bss":
|
case "create_bss":
|
||||||
let bss = config.bss[0];
|
|
||||||
let err = wdev_create(phy, bss.ifname, { mode: "ap" });
|
let err = wdev_create(phy, bss.ifname, { mode: "ap" });
|
||||||
if (err) {
|
if (err) {
|
||||||
hostapd.printf(`Failed to create ${bss.ifname} on phy ${phy}: ${err}`);
|
hostapd.printf(`Failed to create ${bss.ifname} on phy ${phy}: ${err}`);
|
||||||
|
|
Loading…
Reference in a new issue