aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-03-07 22:24:29 +0000
committerFelix Fietkau <nbd@nbd.name>2022-03-16 17:40:22 +0100
commitc00e13726b6c728370686b6d6e0e71b0a9f37f03 (patch)
tree310009bd202cd69fc561971d4948d01b1e70f94f /drivers/net/wireless
parentmt76: mt7915: check for devm_pinctrl_get() failure (diff)
downloadlinux-dev-c00e13726b6c728370686b6d6e0e71b0a9f37f03.tar.xz
linux-dev-c00e13726b6c728370686b6d6e0e71b0a9f37f03.zip
mt76: connac: make read-only array ba_range static const
Don't populate the read-only array ba_range 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: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
index 5e65fa3f3cba..eeb73d14552b 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
@@ -1054,7 +1054,7 @@ void mt76_connac_mcu_wtbl_ba_tlv(struct mt76_dev *dev, struct sk_buff *skb,
}
if (enable && tx) {
- u8 ba_range[] = { 4, 8, 12, 24, 36, 48, 54, 64 };
+ static const u8 ba_range[] = { 4, 8, 12, 24, 36, 48, 54, 64 };
int i;
for (i = 7; i > 0; i--) {