mwifiex: make read-only array wmm_oui static const
PATCH 1/1 mwifiex: make read-only array wmm_oui static const
Don't populate the read-only array wmm_oui on the stack but instead make it static const. Also makes the object code a little smaller.
Signed-off-by Colin Ian King <[email protected]>
--- drivers/net/wireless/marvell/mwifiex/uap_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/marvell/mwifiex/uap_cmd.c +1 -1
@@ -389,7 +389,7 @@ mwifiex_set_wmm_params(struct mwifiex_private *priv, {const u8 *vendor_ie;const u8 *wmm_ie; -u8 wmm_oui[] = {0x00 ,0x50 ,0xf2 ,0x02 }; +static const u8 wmm_oui[] = {0x00 ,0x50 ,0xf2 ,0x02 }; vendor_ie = cfg80211_find_vendor_ie(WLAN_OUI_MICROSOFT, WLAN_OUI_TYPE_MICROSOFT_WMM,
Signature · 1 line
2.35.1
Quoted 5 lines · Colin Ian King
Don't populate the read-only array
wmm_ouion the stack but instead make it static const. Also makes the object code a little smaller.Signed-off-by Colin Ian King <[email protected]>
Patch applied to wireless-next.git, thanks.
e7d1fc0b5ff2 mwifiex: make read-only array wmm_oui static const
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches