mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-15 11:44:11 +00:00
wifi: mac80211: simplify chanctx allocation
[ Upstream commit 860e1b43da
]
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>
This commit is contained in:
parent
79e3d081eb
commit
2ada964f1d
1 changed files with 1 additions and 1 deletions
|
@ -563,7 +563,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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue