| 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 |
| |