]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mt76: mt7915: adapt new firmware to update BA winsize for Rx session
authorBo Jiao <Bo.Jiao@mediatek.com>
Tue, 6 Jul 2021 10:04:26 +0000 (18:04 +0800)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Oct 2021 08:36:26 +0000 (10:36 +0200)
The newer firmware requires host driver to set BA winsize
on both Tx/Rx sessions, so modify it for the long run.

Signed-off-by: Bo Jiao <Bo.Jiao@mediatek.com>
Signed-off-by: Sujuan Chen <sujuan.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
drivers/net/wireless/mediatek/mt76/mt7915/mcu.h

index b55fb3529a4b2c527971d2410bc2bd3d16e10d1a..0e6c299fc0a408d86a5db2d76321f180d46a481d 100644 (file)
@@ -1317,7 +1317,7 @@ mt7915_mcu_wtbl_ba_tlv(struct sk_buff *skb,
                ba->rst_ba_sb = 1;
        }
 
-       if (enable && tx)
+       if (enable)
                ba->ba_winsize = cpu_to_le16(params->buf_size);
 }
 
index e68a562cc5b4f61b86119b4cb710f82292101d64..83cbb99cd723cca985a05488f20dc973a1556a8e 100644 (file)
@@ -716,6 +716,7 @@ struct wtbl_ba {
        __le16 sn;
        u8 ba_en;
        u8 ba_winsize_idx;
+       /* originator & recipient */
        __le16 ba_winsize;
        /* recipient only */
        u8 peer_addr[ETH_ALEN];