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

wifi: mac80211: Fix setting vif links

When setting the interface links, ignore the change iff both the
valid links and the dormant links did not change. This is needed
to support cases where the valid links didn't change but the dormant
links did.

Fixes: 6d543b34 ("wifi: mac80211: Support disabled links during association")
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/20230928172905.0357b6306587.I7dbfec347949b629fea680d246a650d6207ff217@changeidSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 0fca7784
...@@ -195,7 +195,7 @@ static int ieee80211_vif_update_links(struct ieee80211_sub_if_data *sdata, ...@@ -195,7 +195,7 @@ static int ieee80211_vif_update_links(struct ieee80211_sub_if_data *sdata,
memset(to_free, 0, sizeof(links)); memset(to_free, 0, sizeof(links));
if (old_links == new_links) if (old_links == new_links && dormant_links == sdata->vif.dormant_links)
return 0; return 0;
/* if there were no old links, need to clear the pointers to deflink */ /* if there were no old links, need to clear the pointers to deflink */
......
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