wifi-scripts: ucode: add start_disabled for AP mode
authorFelix Fietkau <[email protected]>
Mon, 29 Sep 2025 07:28:56 +0000 (09:28 +0200)
committerFelix Fietkau <[email protected]>
Mon, 29 Sep 2025 10:37:02 +0000 (12:37 +0200)
Enable it, whenever the AP needs to wait for a supplicant instance.

Signed-off-by: Felix Fietkau <[email protected]>
package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc

index 7acff9be8f323c7a2eecc01a088ee7f22c5f0fb0..6151b43fc25d9dbce8cfad785edcf6d7338ae25f 100755 (executable)
@@ -250,6 +250,7 @@ function setup() {
                                break;
                        // fallthrough
                case 'sta':
+                       data.ap_start_disabled = true;
                        let config = supplicant.generate(supplicant_data, data, v);
                        if (mode == "mesh")
                                config_add_mesh_params(config, v.config);
index 7cbd70c39e65d7a1ab17ba5e8dace8f531d41c7c..f18f2f0d3c95d560d082b56d255ef8f00206ad07 100644 (file)
@@ -56,7 +56,7 @@ function iface_setup(config) {
                'snoop_iface', 'vendor_elements', 'nas_identifier', 'radius_acct_interim_interval',
                'ocv', 'multicast_to_unicast', 'preamble', 'proxy_arp', 'per_sta_vif', 'mbo',
                'bss_transition', 'wnm_sleep_mode', 'wnm_sleep_mode_no_keys', 'qos_map_set', 'max_listen_int',
-               'dtim_period', 'wmm_enabled',
+               'dtim_period', 'wmm_enabled', 'start_disabled',
        ]);
 }
 
@@ -434,6 +434,7 @@ export function generate(interface, data, config, vlans, stas, phy_features) {
 
        iface_stations(config, stas);
 
+       config.start_disabled = data.ap_start_disabled;
        iface_setup(config);
 
        iface.parse_encryption(config, data.config);