hostapd: fix call to hostapd reload main master
authorFlorian Maurer <f.maurer@outlook.de>
Sat, 14 Dec 2024 11:38:28 +0000 (12:38 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 19 Dec 2024 08:01:46 +0000 (09:01 +0100)
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>
package/network/services/hostapd/files/hostapd.uc

index 873881200ad26f095971fb096bdf9b1a39afc1d3..b7ef22ce6f0be8b635564c5a9333920f96fab3b2 100644 (file)
@@ -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);
                        }