projects
/
openwrt
/
staging
/
wigyori.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b8f188
)
hostapd: fix an exception in hostapd.uc on interface add failure
author
Felix Fietkau
<
[email protected]
>
Sat, 13 Jan 2024 14:22:27 +0000
(15:22 +0100)
committer
Felix Fietkau
<
[email protected]
>
Sat, 13 Jan 2024 14:22:27 +0000
(15:22 +0100)
Signed-off-by: Felix Fietkau <
[email protected]
>
package/network/services/hostapd/files/hostapd.uc
patch
|
blob
|
history
diff --git
a/package/network/services/hostapd/files/hostapd.uc
b/package/network/services/hostapd/files/hostapd.uc
index 0c89cd71cc47bed1a69693b0c4858795a9dc9bf0..5bffdff83f8b7baaa3e2990c6cc273f2b92762be 100644
(file)
--- a/
package/network/services/hostapd/files/hostapd.uc
+++ b/
package/network/services/hostapd/files/hostapd.uc
@@
-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();
@@
-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}`);