diff options
author | Johannes Berg <johannes.berg@intel.com> | 2023-05-04 16:45:02 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-06-09 10:34:14 +0200 |
commit | aefa37aa32cb4af9d3d24c469bdbe2b9cc083f61 (patch) | |
tree | a92d3d25abd5d93c3f2d8b1f987b86195af11374 /net/mac80211 | |
parent | bdd97c99b346db4960c552e5ca45e8f2b747e94b (diff) | |
download | linux-stable-aefa37aa32cb4af9d3d24c469bdbe2b9cc083f61.tar.gz linux-stable-aefa37aa32cb4af9d3d24c469bdbe2b9cc083f61.tar.bz2 linux-stable-aefa37aa32cb4af9d3d24c469bdbe2b9cc083f61.zip |
wifi: mac80211: simplify chanctx allocation
[ Upstream commit 860e1b43da94551cd1e73adc36b3c64cc3e5dc01 ]
There's no need to call ieee80211_recalc_chanctx_min_def()
since it cannot and won't call the driver anyway; just use
_ieee80211_recalc_chanctx_min_def() instead.
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-3-gregory.greenman@intel.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/chan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c index e72cf0749d49..76c6decb0762 100644 --- a/net/mac80211/chan.c +++ b/net/mac80211/chan.c @@ -638,7 +638,7 @@ ieee80211_alloc_chanctx(struct ieee80211_local *local, ctx->conf.rx_chains_dynamic = 1; ctx->mode = mode; ctx->conf.radar_enabled = false; - ieee80211_recalc_chanctx_min_def(local, ctx); + _ieee80211_recalc_chanctx_min_def(local, ctx); return ctx; } |