1
0
Fork 0
forked from mirror/openwrt

wpa_supplicant: MLO bringup order

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 <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2025-09-29 09:45:45 +02:00
parent d761f6a5a5
commit e0a0d69a63

View 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;
}