summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2024-04-19 10:02:16 +0200
committerFelix Fietkau <nbd@nbd.name>2024-05-02 12:44:52 +0200
commit39db5a541dba9b9cba20a6d12b93b5cd58f00e7a (patch)
tree45b04a94b0b230ec48de585602b09501ec6bf9e5 /drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
parent64bfcdbe025699d3d81ec11af24bd4895c0f6ddd (diff)
downloadlinux-stable-39db5a541dba9b9cba20a6d12b93b5cd58f00e7a.tar.gz
linux-stable-39db5a541dba9b9cba20a6d12b93b5cd58f00e7a.tar.bz2
linux-stable-39db5a541dba9b9cba20a6d12b93b5cd58f00e7a.zip
wifi: mt76: make const arrays in functions static
Reduces size by avoiding duplicates Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7996/mcu.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7996/mcu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
index 4f8e656b2cae..4bd74e182973 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
@@ -1656,7 +1656,7 @@ mt7996_mcu_sta_bfer_tlv(struct mt7996_dev *dev, struct sk_buff *skb,
int tx_ant = hweight8(phy->mt76->chainmask) - 1;
struct sta_rec_bf *bf;
struct tlv *tlv;
- const u8 matrix[4][4] = {
+ static const u8 matrix[4][4] = {
{0, 0, 0, 0},
{1, 1, 0, 0}, /* 2x1, 2x2, 2x3, 2x4 */
{2, 4, 4, 0}, /* 3x1, 3x2, 3x3, 3x4 */