Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wifi: mac80211_hwsim: Handle BSS_CHANGED_VALID_LINKS

In station mode, set the active links to all the usable
links.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230920211508.6218307226d3.I249f52b4773423a33c3121e31002abe0a8d98e78@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Ilan Peer and committed by
Johannes Berg
f605d10a 041a74cb

+8
+8
drivers/net/wireless/virtual/mac80211_hwsim.c
··· 2445 2445 vp->assoc = vif->cfg.assoc; 2446 2446 vp->aid = vif->cfg.aid; 2447 2447 } 2448 + 2449 + if (vif->type == NL80211_IFTYPE_STATION && 2450 + changed & BSS_CHANGED_MLD_VALID_LINKS) { 2451 + u16 usable_links = ieee80211_vif_usable_links(vif); 2452 + 2453 + if (vif->active_links != usable_links) 2454 + ieee80211_set_active_links_async(vif, usable_links); 2455 + } 2448 2456 } 2449 2457 2450 2458 static void mac80211_hwsim_link_info_changed(struct ieee80211_hw *hw,