[rdkb][common][bsp][Refactor and sync wifi from openwrt]
[Description]
cde1bdf2 [MAC80211][WiFi6][mt76][Remove enable/disable cts/rts protection flow]
[Release-log]
Change-Id: I5ba5459a475ba79f602a919295147ac7593eb88d
diff --git a/recipes-wifi/linux-mt76/files/patches/1054-wifi-mt76-mt7915-remove-rts-and-cts-protection-enabl.patch b/recipes-wifi/linux-mt76/files/patches/1054-wifi-mt76-mt7915-remove-rts-and-cts-protection-enabl.patch
new file mode 100644
index 0000000..6bb5239
--- /dev/null
+++ b/recipes-wifi/linux-mt76/files/patches/1054-wifi-mt76-mt7915-remove-rts-and-cts-protection-enabl.patch
@@ -0,0 +1,65 @@
+From 01a42eca7e7ac3362e4108efc4d9b1938ff4c5ee Mon Sep 17 00:00:00 2001
+From: Rex Lu <rex.lu@mediatek.com>
+Date: Wed, 16 Oct 2024 13:48:03 +0800
+Subject: [PATCH] wifi: mt76: mt7915: remove rts and cts protection enable flow
+
+---
+ mt7915/mac.c | 13 -------------
+ mt7915/main.c | 3 ---
+ mt7915/mt7915.h | 2 --
+ 3 files changed, 18 deletions(-)
+
+diff --git a/mt7915/mac.c b/mt7915/mac.c
+index 677c339..b4f115e 100644
+--- a/mt7915/mac.c
++++ b/mt7915/mac.c
+@@ -216,19 +216,6 @@ static void mt7915_mac_sta_poll(struct mt7915_dev *dev)
+ rcu_read_unlock();
+ }
+
+-void mt7915_mac_enable_rtscts(struct mt7915_dev *dev,
+- struct ieee80211_vif *vif, bool enable)
+-{
+- struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv;
+- u32 addr;
+-
+- addr = mt7915_mac_wtbl_lmac_addr(dev, mvif->sta.wcid.idx, 5);
+- if (enable)
+- mt76_set(dev, addr, BIT(5));
+- else
+- mt76_clear(dev, addr, BIT(5));
+-}
+-
+ static void
+ mt7915_wed_check_ppe(struct mt7915_dev *dev, struct mt76_queue *q,
+ struct mt7915_sta *msta, struct sk_buff *skb,
+diff --git a/mt7915/main.c b/mt7915/main.c
+index d5ea85d..ea427d1 100644
+--- a/mt7915/main.c
++++ b/mt7915/main.c
+@@ -681,9 +681,6 @@ static void mt7915_bss_info_changed(struct ieee80211_hw *hw,
+ if (set_sta == 1)
+ mt7915_mcu_add_sta(dev, vif, NULL, true);
+
+- if (changed & BSS_CHANGED_ERP_CTS_PROT)
+- mt7915_mac_enable_rtscts(dev, vif, info->use_cts_prot);
+-
+ if (changed & BSS_CHANGED_ERP_SLOT) {
+ int slottime = info->use_short_slot ? 9 : 20;
+
+diff --git a/mt7915/mt7915.h b/mt7915/mt7915.h
+index 7c185a1..01d8552 100644
+--- a/mt7915/mt7915.h
++++ b/mt7915/mt7915.h
+@@ -760,8 +760,6 @@ bool mt7915_mac_wtbl_update(struct mt7915_dev *dev, int idx, u32 mask);
+ void mt7915_mac_reset_counters(struct mt7915_phy *phy);
+ void mt7915_mac_cca_stats_reset(struct mt7915_phy *phy);
+ void mt7915_mac_enable_nf(struct mt7915_dev *dev, bool ext_phy);
+-void mt7915_mac_enable_rtscts(struct mt7915_dev *dev,
+- struct ieee80211_vif *vif, bool enable);
+ void mt7915_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi,
+ struct sk_buff *skb, struct mt76_wcid *wcid, int pid,
+ struct ieee80211_key_conf *key,
+--
+2.45.2
+
diff --git a/recipes-wifi/linux-mt76/files/patches/patches.inc b/recipes-wifi/linux-mt76/files/patches/patches.inc
index a2fbe6e..11a75c9 100644
--- a/recipes-wifi/linux-mt76/files/patches/patches.inc
+++ b/recipes-wifi/linux-mt76/files/patches/patches.inc
@@ -80,6 +80,7 @@
file://1051-wifi-mt76-mt7915-set-channel-after-sta-is-associated.patch \
file://1052-wifi-mt76-mt7915-Clear-private-driver-data-in-case-o.patch \
file://1053-wifi-mt76-mt7915-fix-TX-RX-hang-without-SER-hw-bit-t.patch \
+ file://1054-wifi-mt76-mt7915-remove-rts-and-cts-protection-enabl.patch \
file://2000-wifi-mt76-mt7915-wed-add-wed-tx-support.patch \
file://2001-wifi-mt76-mt7915-wed-add-wds-support-when-wed-is-ena.patch \
file://2002-wifi-mt76-mt7915-wed-add-fill-receive-path-to-report.patch \