summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Maurer2024-12-14 11:38:28 +0000
committerFelix Fietkau2024-12-19 08:01:46 +0000
commit31e45f62cafbc9361c72d320241e589b31e2b5ed (patch)
tree337b929eae3c9cac43630dc1f665e33961379cd1
parent2e03c7d53e84e5e8c964914b78fe4b429563655e (diff)
downloadopenwrt-31e45f62cafbc9361c72d320241e589b31e2b5ed.tar.gz
hostapd: fix call to hostapd reload
access to undeclared variable radio In [anonymous function](), file /usr/share/hostap/hostapd.uc, line 830, byte 45: Signed-off-by: Florian Maurer <f.maurer@outlook.de>
-rw-r--r--package/network/services/hostapd/files/hostapd.uc2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc
index 873881200a..b7ef22ce6f 100644
--- a/package/network/services/hostapd/files/hostapd.uc
+++ b/package/network/services/hostapd/files/hostapd.uc
@@ -899,7 +899,7 @@ let main_obj = {
let phy_list = req.args.phy ? [ phy_name(req.args.phy, req.args.radio) ] : keys(hostapd.data.config);
for (let phy_name in phy_list) {
let phy = hostapd.data.config[phy_name];
- let config = iface_load_config(phy.phy, radio, phy.orig_file);
+ let config = iface_load_config(phy.phy, phy.radio_idx, phy.orig_file);
iface_set_config(phy_name, config);
}