Skip to content

Commit 6c0da84

Browse files
ColinIanKingdavem330
authored andcommitted
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]> Signed-off-by: David S. Miller <[email protected]>
1 parent ccd663c commit 6c0da84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mac80211/tdls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ ieee80211_tdls_chandef_vht_upgrade(struct ieee80211_sub_if_data *sdata,
309309
struct sta_info *sta)
310310
{
311311
/* IEEE802.11ac-2013 Table E-4 */
312-
u16 centers_80mhz[] = { 5210, 5290, 5530, 5610, 5690, 5775 };
312+
static const u16 centers_80mhz[] = { 5210, 5290, 5530, 5610, 5690, 5775 };
313313
struct cfg80211_chan_def uc = sta->tdls_chandef;
314314
enum nl80211_chan_width max_width =
315315
ieee80211_sta_cap_chan_bw(&sta->deflink);

0 commit comments

Comments
 (0)