OSDN Git Service

wifi: mac80211: simplify chanctx allocation
authorJohannes Berg <johannes.berg@intel.com>
Thu, 4 May 2023 13:45:02 +0000 (16:45 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 May 2023 17:25:31 +0000 (10:25 -0700)
commit860e1b43da94551cd1e73adc36b3c64cc3e5dc01
treeb07650a51fbedbb738f49cebc3f53676a880c9af
parenta23d7f5b2fbda114de60c4b53311e052281d7533
wifi: mac80211: simplify chanctx allocation

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>
net/mac80211/chan.c