mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-28 20:54:37 +04:00
wpa_supplicant: take a station config into an MLD only on its radios
mld_set_iface_config() sets the present bit for every radio with a
station config for the MLD, also for a radio outside the radios that
mld_set names. The MLD netdev spans only those radios, but such a radio
joins the Add, its frequencies enter the scan list and phy_status of
that radio names the MLD. A later phy_set_state stop of that radio
removes the MLD, and the start skips the radio because it is outside
data.radio_mask, so the MLD stays down although another radio has a
config.
Set the present bit only for a radio of the MLD, as the phy_set_state
start and mld_radios_held() already count only those radios.
Fixes: 9aca8a97d7 ("wpa_supplicant: add MLO client support")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
1 parent
484c930cbc
commit
263dccf12d
1 file changed
+1
-1
@@ -433,7 +433,7 @@ function mld_set_iface_config(name, data, phy, config)
|
||||
wpas.printf(`Set MLD interface ${name} radio ${radio} config: ${keys(config)}`);
|
||||
|
||||
data.phy_config[radio] = config;
|
||||
if (config && !phy.stopped)
|
||||
if (config && !phy.stopped && (data.radio_mask & (1 << radio)))
|
||||
data.radio_mask_present |= 1 << radio;
|
||||
else
|
||||
data.radio_mask_present &= ~(1 << radio);
|
||||
|
||||
Reference in new issue
Block a user