diff options
author | Johannes Berg <johannes.berg@intel.com> | 2023-05-04 15:45:03 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-05-16 19:25:43 +0200 |
commit | b72a455a2409fd94d6d9b4eb51d659a88213243b (patch) | |
tree | b06f620504562e045ec9f08a2b5381cc3d0623f9 /net/mac80211/util.c | |
parent | wifi: mac80211: simplify chanctx allocation (diff) | |
download | linux-b72a455a2409fd94d6d9b4eb51d659a88213243b.tar.xz linux-b72a455a2409fd94d6d9b4eb51d659a88213243b.zip |
wifi: mac80211: consider reserved chanctx for mindef
When a chanctx is reserved for a new vif and we recalculate
the minimal definition for it, we need to consider the new
interface it's being reserved for before we assign it, so it
can be used directly with the correct min channel width.
Fix the code to - optionally - consider that, and use that
option just before doing the reassignment.
Also, when considering channel context reservations, we
should only consider the one link we're currently working with.
Change the boolean argument to a link pointer to do that.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230504134511.828474-4-gregory.greenman@intel.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to '')
-rw-r--r-- | net/mac80211/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 1527d6aafc14..4bf76150925d 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -3015,7 +3015,7 @@ void ieee80211_recalc_min_chandef(struct ieee80211_sub_if_data *sdata, chanctx = container_of(chanctx_conf, struct ieee80211_chanctx, conf); - ieee80211_recalc_chanctx_min_def(local, chanctx); + ieee80211_recalc_chanctx_min_def(local, chanctx, NULL); } unlock: mutex_unlock(&local->chanctx_mtx); |