From 263dccf12d96bb13e8e8910dc6247f09d56aeaf3 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 27 Oct 2026 13:46:34 +0000 Subject: [PATCH] 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: 9aca8a97d791 ("wpa_supplicant: add MLO client support") Signed-off-by: Felix Fietkau --- package/network/services/hostapd/files/wpa_supplicant.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/services/hostapd/files/wpa_supplicant.uc b/package/network/services/hostapd/files/wpa_supplicant.uc index 3d414112d3b..76e6ba99a4b 100644 --- a/package/network/services/hostapd/files/wpa_supplicant.uc +++ b/package/network/services/hostapd/files/wpa_supplicant.uc @@ -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);