Skip to content

Commit

Permalink
hostapd: fix an exception in hostapd.uc on interface add failure
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 authored and noblemtw committed Jan 13, 2024
1 parent 87c4f73 commit be3d639
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 @@ -128,6 +128,7 @@ function __iface_pending_next(pending, state, ret, data)
let config = pending.config;
let phydev = pending.phydev;
let phy = pending.phy;
let bss = config.bss[0];

if (pending.defer)
pending.defer.abort();
Expand All @@ -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 });
return "create_bss";
case "create_bss":
let bss = config.bss[0];
let err = wdev_create(phy, bss.ifname, { mode: "ap" });
if (err) {
hostapd.printf(`Failed to create ${bss.ifname} on phy ${phy}: ${err}`);
Expand Down

0 comments on commit be3d639

Please sign in to comment.