[][mac80211][wifi6][mt76][Disable HW amsdu when using fixed rate]

[Description]
Remove HW_AMSDU bit in txd.
When using fixed rate, HW uses txd DW9 to store tx arrivial time if VTA
is ture. It would overwrite the msdu_id in txd and lead to token pending
if amsdu is enable.

[Release-log]
N/A

Change-Id: I6a06e3cf50f31ebf7fdc4b59fedd2b747bacd62b
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7976025
diff --git a/autobuild_mac80211_release/package/kernel/mt76/patches/0015-wifi-mt76-disable-HW-AMSDU-when-using-fixed-rate.patch b/autobuild_mac80211_release/package/kernel/mt76/patches/0015-wifi-mt76-disable-HW-AMSDU-when-using-fixed-rate.patch
new file mode 100644
index 0000000..c5e2934
--- /dev/null
+++ b/autobuild_mac80211_release/package/kernel/mt76/patches/0015-wifi-mt76-disable-HW-AMSDU-when-using-fixed-rate.patch
@@ -0,0 +1,39 @@
+From 96656c8856b6e386608b67b15ef4ab10f60af666 Mon Sep 17 00:00:00 2001
+From: Peter Chiu <chui-hao.chiu@mediatek.com>
+Date: Wed, 6 Sep 2023 16:27:25 +0800
+Subject: [PATCH] wifi: mt76: disable HW AMSDU when using fixed rate
+
+When using fixed rate, HW uses txd DW9 to store tx arrivial time if VTA
+is ture. It would overwrite the msdu_id in txd and lead to token pending
+if amsdu is enable.
+
+Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
+---
+ mt76_connac_mac.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/mt76_connac_mac.c b/mt76_connac_mac.c
+index ee5177fd..1ece8754 100644
+--- a/mt76_connac_mac.c
++++ b/mt76_connac_mac.c
+@@ -557,7 +557,7 @@ void mt76_connac2_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi,
+ 	val = FIELD_PREP(MT_TXD5_PID, pid);
+ 	if (pid >= MT_PACKET_ID_FIRST) {
+ 		val |= MT_TXD5_TX_STATUS_HOST;
+-		amsdu_en = amsdu_en && !is_mt7921(dev);
++		amsdu_en = 0;
+ 	}
+ 
+ 	txwi[5] = cpu_to_le32(val);
+@@ -592,6 +592,8 @@ void mt76_connac2_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi,
+ 				spe_idx = 24 + phy_idx;
+ 			txwi[7] |= cpu_to_le32(FIELD_PREP(MT_TXD7_SPE_IDX, spe_idx));
+ 		}
++
++		txwi[7] &= ~cpu_to_le32(MT_TXD7_HW_AMSDU);
+ 	}
+ }
+ EXPORT_SYMBOL_GPL(mt76_connac2_mac_write_txwi);
+-- 
+2.18.0
+