]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
mt76x0: update init vals for MT_TX_PROT registers
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Sat, 20 Oct 2018 10:40:53 +0000 (12:40 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 30 Nov 2018 11:21:41 +0000 (12:21 +0100)
Add missing VHT MT_TX_PROT register init values

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/initvals.h

index 236dce6860b465782d5504008b02915dca05fb4c..a1657922758e73a1f251a108d8bce914bd6fe5bb 100644 (file)
@@ -37,14 +37,14 @@ static const struct mt76_reg_pair common_mac_reg_table[] = {
        { MT_PBF_RX_MAX_PCNT,           0x0000fe9f },
        { MT_TX_RETRY_CFG,              0x47d01f0f },
        { MT_AUTO_RSP_CFG,              0x00000013 },
-       { MT_CCK_PROT_CFG,              0x05740003 },
-       { MT_OFDM_PROT_CFG,             0x05740003 },
+       { MT_CCK_PROT_CFG,              0x07f40003 },
+       { MT_OFDM_PROT_CFG,             0x07f42004 },
        { MT_PBF_CFG,                   0x00f40006 },
        { MT_WPDMA_GLO_CFG,             0x00000030 },
-       { MT_GF20_PROT_CFG,             0x01744004 },
-       { MT_GF40_PROT_CFG,             0x03f44084 },
-       { MT_MM20_PROT_CFG,             0x01744004 },
-       { MT_MM40_PROT_CFG,             0x03f54084 },
+       { MT_GF20_PROT_CFG,             0x01742004 },
+       { MT_GF40_PROT_CFG,             0x03f42084 },
+       { MT_MM20_PROT_CFG,             0x01742004 },
+       { MT_MM40_PROT_CFG,             0x03f42084 },
        { MT_TXOP_CTRL_CFG,             0x0000583f },
        { MT_TX_RTS_CFG,                0x00092b20 },
        { MT_EXP_ACK_TIME,              0x002400ca },
@@ -85,6 +85,9 @@ static const struct mt76_reg_pair mt76x0_mac_reg_table[] = {
        { MT_HT_CTRL_CFG,               0x000001FF },
        { MT_TXOP_HLDR_ET,              0x00000000 },
        { MT_PN_PAD_MODE,               0x00000003 },
+       { MT_TX_PROT_CFG6,              0xe3f42004 },
+       { MT_TX_PROT_CFG7,              0xe3f42084 },
+       { MT_TX_PROT_CFG8,              0xe3f42104 },
 };
 
 static const struct mt76_reg_pair mt76x0_bbp_init_tab[] = {