summaryrefslogtreecommitdiffstats
path: root/net/mac80211/vht.c
diff options
context:
space:
mode:
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>2022-06-22 15:15:56 +0200
committerJohannes Berg <johannes.berg@intel.com>2022-07-15 11:43:20 +0200
commit0cbf348a9a790d5dfbfa1b5b463f09507e7594fc (patch)
treec6998e394b4a4eb29317263233c7eb22e70830fb /net/mac80211/vht.c
parentwifi: mac80211: don't check carrier in chanctx code (diff)
downloadlinux-0cbf348a9a790d5dfbfa1b5b463f09507e7594fc.tar.xz
linux-0cbf348a9a790d5dfbfa1b5b463f09507e7594fc.zip
wifi: mac80211: Support multi link in ieee80211_recalc_min_chandef()
Recalculate min channel context for the given or all interface links, depending on the caller. For a station state change, we need to recalculate all of them since we don't know which link (or multiple) it might be on. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/vht.c')
-rw-r--r--net/mac80211/vht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/vht.c b/net/mac80211/vht.c
index c804890dc623..b2b09d421e8b 100644
--- a/net/mac80211/vht.c
+++ b/net/mac80211/vht.c
@@ -731,7 +731,7 @@ void ieee80211_vht_handle_opmode(struct ieee80211_sub_if_data *sdata,
opmode, band);
if (changed > 0) {
- ieee80211_recalc_min_chandef(sdata);
+ ieee80211_recalc_min_chandef(sdata, link_sta->link_id);
rate_control_rate_update(local, sband, link_sta->sta,
link_sta->link_id, changed);
}