wpa_supplicant: MLO bringup order
authorFelix Fietkau <[email protected]>
Mon, 29 Sep 2025 07:45:45 +0000 (09:45 +0200)
committerFelix Fietkau <[email protected]>
Mon, 29 Sep 2025 10:37:02 +0000 (12:37 +0200)
Do not allow hostapd phy state update to bring up links as long between mld_set
and mld_start calls. Configuration on other PHYs could still be pending.

Signed-off-by: Felix Fietkau <[email protected]>
package/network/services/hostapd/files/wpa_supplicant.uc

index cf31c1bd598d9bbe0b444314da53a56da8fbf783..215aa62012731ce16db1bbf1451b0065570adace 100644 (file)
@@ -303,6 +303,9 @@ function mld_update_phy(phy, ifaces) {
 }
 
 function mld_start() {
+       if (wpas.data.mld_pending)
+               return;
+
        wpas.printf(`Start pending MLD interfaces\n`);
 
        let phy_list = {};
@@ -501,6 +504,7 @@ let main_obj = {
                        if (!req.args.config)
                                return libubus.STATUS_INVALID_ARGUMENT;
 
+                       wpas.data.mld_pending = true;
                        mld_set_config(req.args.config);
                        return 0;
                }
@@ -508,6 +512,7 @@ let main_obj = {
        mld_start: {
                args: {},
                call: function(req) {
+                       wpas.data.mld_pending = false;
                        mld_start();
                        return 0;
                }