wifi: cfg80211: make read-only array centers_80mhz static const
Subsystems (4)
PATCH 1/1 wifi: cfg80211: make read-only array centers_80mhz static const
Don't populate the read-only array lanes on the stack, instead make it static const.
Signed-off-by Colin Ian King <[email protected]>
--- net/mac80211/tdls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/tdls.c +1 -1
@@ -309,7 +309,7 @@ ieee80211_tdls_chandef_vht_upgrade(struct ieee80211_sub_if_data *sdata, struct sta_info *sta) {/* IEEE802.11ac-2013 Table E-4 */ -u16 centers_80mhz[] = {5210 ,5290 ,5530 ,5610 ,5690 ,5775 }; +static const u16 centers_80mhz[] = {5210 ,5290 ,5530 ,5610 ,5690 ,5775 };struct cfg80211_chan_def uc = sta->tdls_chandef;enum nl80211_chan_width max_width =ieee80211_sta_cap_chan_bw (&sta->deflink);
Signature · 1 line
2.39.2
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Quoted 7 lines · On Tue, 19 Sep 2023 10:52:05 +0100 you wrote:
Don't populate the read-only array lanes on the stack, instead make it static const.
Signed-off-by Colin Ian King <[email protected]>--- net/mac80211/tdls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [next] wifi: cfg80211: make read-only array centers_80mhz static const
https://git.kernel.org/netdev/net-next/c/6c0da8406382
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html