[][MAC80211][Rebase Patch][Add support for IEEE 802.11 fragmentation]
[Description]
Refactor patch to add support for IEEE 802.11 fragmentation.
[Release-log]
N/A
Change-Id: Idbb09e904e55aab40f103a3d9d3e70c26b3feffb
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8898122
diff --git a/autobuild_mac80211_release/package/kernel/mt76/patches/1043-wifi-mt76-mt7915-Add-support-for-lpi-and-duplicate-m.patch b/autobuild_mac80211_release/package/kernel/mt76/patches/1043-wifi-mt76-mt7915-Add-support-for-lpi-and-duplicate-m.patch
index 82b5848..c91ad44 100644
--- a/autobuild_mac80211_release/package/kernel/mt76/patches/1043-wifi-mt76-mt7915-Add-support-for-lpi-and-duplicate-m.patch
+++ b/autobuild_mac80211_release/package/kernel/mt76/patches/1043-wifi-mt76-mt7915-Add-support-for-lpi-and-duplicate-m.patch
@@ -1,8 +1,7 @@
-From 7b2e5eede2267e4135d683ee71bd52dcdcfdea4c Mon Sep 17 00:00:00 2001
+From 771d717a6bce6c6a7f7bb06599b42fa3994b560e Mon Sep 17 00:00:00 2001
From: Allen Ye <allen.ye@mediatek.com>
Date: Fri, 15 Dec 2023 14:03:11 +0800
-Subject: [PATCH 1043/1053] wifi: mt76: mt7915: Add support for lpi and
- duplicate mode
+Subject: [PATCH] wifi: mt76: mt7915: Add support for lpi and duplicate mode
Add support lpi and duplicate mode.
1. lpi_enable: lpi fw cmd and set psd flag to fw by the country setting.
@@ -118,10 +117,10 @@
mt76_find_channel_node(struct device_node *np, struct ieee80211_channel *chan);
diff --git a/mt76_connac2_mac.h b/mt76_connac2_mac.h
-index 5f13211..c49a330 100644
+index eb47653..49ba39f 100644
--- a/mt76_connac2_mac.h
+++ b/mt76_connac2_mac.h
-@@ -355,4 +355,11 @@ enum tx_port_idx {
+@@ -355,6 +355,13 @@ enum tx_port_idx {
MT_TX_PORT_IDX_MCU
};
@@ -132,12 +131,14 @@
+ MT_TX_BW_IDX_160,
+};
+
- #endif /* __MT76_CONNAC2_MAC_H */
+ enum tx_frag_idx {
+ MT_TX_FRAG_NONE,
+ MT_TX_FRAG_FIRST,
diff --git a/mt76_connac_mac.c b/mt76_connac_mac.c
-index d036047..d41f004 100644
+index 5ba0255..5f705bb 100644
--- a/mt76_connac_mac.c
+++ b/mt76_connac_mac.c
-@@ -564,7 +564,8 @@ void mt76_connac2_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi,
+@@ -572,7 +572,8 @@ void mt76_connac2_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi,
u16 rate = mt76_connac2_mac_tx_rate_val(mphy, vif, beacon,
multicast);
u32 val = MT_TXD6_FIXED_BW;
@@ -147,7 +148,7 @@
/* hardware won't add HTC for mgmt/ctrl frame */
txwi[2] |= cpu_to_le32(MT_TXD2_HTC_VLD);
-@@ -577,7 +578,9 @@ void mt76_connac2_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi,
+@@ -585,7 +586,9 @@ void mt76_connac2_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi,
if (!spe_idx)
spe_idx = 24 + phy_idx;
@@ -365,7 +366,7 @@
int mt7915_mcu_set_edcca(struct mt7915_phy *phy, int mode, u8 *value, s8 compensation);
int mt7915_mcu_get_edcca(struct mt7915_phy *phy, u8 mode, s8 *value);
diff --git a/mt7915/mtk_debugfs.c b/mt7915/mtk_debugfs.c
-index 2d6e166..d3d3b17 100644
+index 53294c1..352b8e9 100644
--- a/mt7915/mtk_debugfs.c
+++ b/mt7915/mtk_debugfs.c
@@ -3945,6 +3945,7 @@ int mt7915_mtk_init_debugfs(struct mt7915_phy *phy, struct dentry *dir)