Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wifi: rtw89: declare support bands with const

They are just default declarations and we won't modify them directly.
Instead, we actually do moification on their memdup now. So, they
should be declared with const.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221020052702.33988-1-pkshih@realtek.com

authored by

Zong-Zhe Yang and committed by
Kalle Valo
a29dba47 4feda7f3

+3 -3
+3 -3
drivers/net/wireless/realtek/rtw89/core.c
··· 171 171 return true; 172 172 } 173 173 174 - static struct ieee80211_supported_band rtw89_sband_2ghz = { 174 + static const struct ieee80211_supported_band rtw89_sband_2ghz = { 175 175 .band = NL80211_BAND_2GHZ, 176 176 .channels = rtw89_channels_2ghz, 177 177 .n_channels = ARRAY_SIZE(rtw89_channels_2ghz), ··· 181 181 .vht_cap = {0}, 182 182 }; 183 183 184 - static struct ieee80211_supported_band rtw89_sband_5ghz = { 184 + static const struct ieee80211_supported_band rtw89_sband_5ghz = { 185 185 .band = NL80211_BAND_5GHZ, 186 186 .channels = rtw89_channels_5ghz, 187 187 .n_channels = ARRAY_SIZE(rtw89_channels_5ghz), ··· 193 193 .vht_cap = {0}, 194 194 }; 195 195 196 - static struct ieee80211_supported_band rtw89_sband_6ghz = { 196 + static const struct ieee80211_supported_band rtw89_sband_6ghz = { 197 197 .band = NL80211_BAND_6GHZ, 198 198 .channels = rtw89_channels_6ghz, 199 199 .n_channels = ARRAY_SIZE(rtw89_channels_6ghz),