projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dde78aa
)
mwifiex: make read-only array wmm_oui static const
author
Colin Ian King
<colin.i.king@gmail.com>
Fri, 11 Mar 2022 22:56:10 +0000
(22:56 +0000)
committer
Kalle Valo
<kvalo@kernel.org>
Wed, 16 Mar 2022 15:28:01 +0000
(17:28 +0200)
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 <colin.i.king@gmail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link:
https://lore.kernel.org/r/20220311225610.10895-1-colin.i.king@gmail.com
drivers/net/wireless/marvell/mwifiex/uap_cmd.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/marvell/mwifiex/uap_cmd.c
b/drivers/net/wireless/marvell/mwifiex/uap_cmd.c
index 18e89777b78412cd0e431ab292fce8df50753855..630e1679c3f960c328a0d5f41855d321f4e1df21 100644
(file)
--- a/
drivers/net/wireless/marvell/mwifiex/uap_cmd.c
+++ b/
drivers/net/wireless/marvell/mwifiex/uap_cmd.c
@@
-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,