Commit d5f4ceee authored by Bo Jiao's avatar Bo Jiao Committed by Felix Fietkau

mt76: mt7915: adapt new firmware to update BA winsize for Rx session

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: default avatarBo Jiao <Bo.Jiao@mediatek.com>
Signed-off-by: default avatarSujuan Chen <sujuan.chen@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 4826075c
...@@ -1317,7 +1317,7 @@ mt7915_mcu_wtbl_ba_tlv(struct sk_buff *skb, ...@@ -1317,7 +1317,7 @@ mt7915_mcu_wtbl_ba_tlv(struct sk_buff *skb,
ba->rst_ba_sb = 1; ba->rst_ba_sb = 1;
} }
if (enable && tx) if (enable)
ba->ba_winsize = cpu_to_le16(params->buf_size); ba->ba_winsize = cpu_to_le16(params->buf_size);
} }
......
...@@ -716,6 +716,7 @@ struct wtbl_ba { ...@@ -716,6 +716,7 @@ struct wtbl_ba {
__le16 sn; __le16 sn;
u8 ba_en; u8 ba_en;
u8 ba_winsize_idx; u8 ba_winsize_idx;
/* originator & recipient */
__le16 ba_winsize; __le16 ba_winsize;
/* recipient only */ /* recipient only */
u8 peer_addr[ETH_ALEN]; u8 peer_addr[ETH_ALEN];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment