[openwrt/openwrt] hostapd: fix call to hostapd reload

LEDE Commits lede-commits at lists.infradead.org
Thu Dec 19 00:03:01 PST 2024


nbd pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/5a715cdbcdac03f5cdf1c3e89334c37dc8a008a2

commit 5a715cdbcdac03f5cdf1c3e89334c37dc8a008a2
Author: Florian Maurer <f.maurer at outlook.de>
AuthorDate: Sat Dec 14 12:38:28 2024 +0100

    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 at outlook.de>
    (cherry picked from commit 31e45f62cafbc9361c72d320241e589b31e2b5ed)
---
 package/network/services/hostapd/files/hostapd.uc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc
index 8e70f6b8af..30292ce9ae 100644
--- a/package/network/services/hostapd/files/hostapd.uc
+++ b/package/network/services/hostapd/files/hostapd.uc
@@ -827,7 +827,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);
 			}
 




More information about the lede-commits mailing list