Commit f605d10a authored by Ilan Peer's avatar Ilan Peer Committed by Johannes Berg

wifi: mac80211_hwsim: Handle BSS_CHANGED_VALID_LINKS

In station mode, set the active links to all the usable
links.
Signed-off-by: default avatarIlan Peer <ilan.peer@intel.com>
Signed-off-by: default avatarGregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230920211508.6218307226d3.I249f52b4773423a33c3121e31002abe0a8d98e78@changeidSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 041a74cb
......@@ -2445,6 +2445,14 @@ static void mac80211_hwsim_vif_info_changed(struct ieee80211_hw *hw,
vp->assoc = vif->cfg.assoc;
vp->aid = vif->cfg.aid;
}
if (vif->type == NL80211_IFTYPE_STATION &&
changed & BSS_CHANGED_MLD_VALID_LINKS) {
u16 usable_links = ieee80211_vif_usable_links(vif);
if (vif->active_links != usable_links)
ieee80211_set_active_links_async(vif, usable_links);
}
}
static void mac80211_hwsim_link_info_changed(struct ieee80211_hw *hw,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment