projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bdd97c9
)
wifi: mac80211: simplify chanctx allocation
author
Johannes Berg
<johannes.berg@intel.com>
Thu, 4 May 2023 13:45:02 +0000
(16:45 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 9 Jun 2023 08:34:14 +0000
(10:34 +0200)
[ 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
patch
|
blob
|
history
diff --git
a/net/mac80211/chan.c
b/net/mac80211/chan.c
index
e72cf07
..
76c6dec
100644
(file)
--- 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;
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;
}
return ctx;
}