wifi: mac80211: simplify chanctx allocation
authorJohannes Berg <johannes.berg@intel.com>
Thu, 4 May 2023 13:45:02 +0000 (16:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2023 08:34:14 +0000 (10:34 +0200)
commitaefa37aa32cb4af9d3d24c469bdbe2b9cc083f61
treea92d3d25abd5d93c3f2d8b1f987b86195af11374
parentbdd97c99b346db4960c552e5ca45e8f2b747e94b
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>
net/mac80211/chan.c