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:
parent
d761f6a5a5
commit
e0a0d69a63
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue