developer | fbbad72 | 2024-10-21 12:26:36 +0800 | [diff] [blame^] | 1 | From 01a42eca7e7ac3362e4108efc4d9b1938ff4c5ee Mon Sep 17 00:00:00 2001 |
| 2 | From: Rex Lu <rex.lu@mediatek.com> |
| 3 | Date: Wed, 16 Oct 2024 13:48:03 +0800 |
| 4 | Subject: [PATCH] wifi: mt76: mt7915: remove rts and cts protection enable flow |
| 5 | |
| 6 | --- |
| 7 | mt7915/mac.c | 13 ------------- |
| 8 | mt7915/main.c | 3 --- |
| 9 | mt7915/mt7915.h | 2 -- |
| 10 | 3 files changed, 18 deletions(-) |
| 11 | |
| 12 | diff --git a/mt7915/mac.c b/mt7915/mac.c |
| 13 | index 677c339..b4f115e 100644 |
| 14 | --- a/mt7915/mac.c |
| 15 | +++ b/mt7915/mac.c |
| 16 | @@ -216,19 +216,6 @@ static void mt7915_mac_sta_poll(struct mt7915_dev *dev) |
| 17 | rcu_read_unlock(); |
| 18 | } |
| 19 | |
| 20 | -void mt7915_mac_enable_rtscts(struct mt7915_dev *dev, |
| 21 | - struct ieee80211_vif *vif, bool enable) |
| 22 | -{ |
| 23 | - struct mt7915_vif *mvif = (struct mt7915_vif *)vif->drv_priv; |
| 24 | - u32 addr; |
| 25 | - |
| 26 | - addr = mt7915_mac_wtbl_lmac_addr(dev, mvif->sta.wcid.idx, 5); |
| 27 | - if (enable) |
| 28 | - mt76_set(dev, addr, BIT(5)); |
| 29 | - else |
| 30 | - mt76_clear(dev, addr, BIT(5)); |
| 31 | -} |
| 32 | - |
| 33 | static void |
| 34 | mt7915_wed_check_ppe(struct mt7915_dev *dev, struct mt76_queue *q, |
| 35 | struct mt7915_sta *msta, struct sk_buff *skb, |
| 36 | diff --git a/mt7915/main.c b/mt7915/main.c |
| 37 | index d5ea85d..ea427d1 100644 |
| 38 | --- a/mt7915/main.c |
| 39 | +++ b/mt7915/main.c |
| 40 | @@ -681,9 +681,6 @@ static void mt7915_bss_info_changed(struct ieee80211_hw *hw, |
| 41 | if (set_sta == 1) |
| 42 | mt7915_mcu_add_sta(dev, vif, NULL, true); |
| 43 | |
| 44 | - if (changed & BSS_CHANGED_ERP_CTS_PROT) |
| 45 | - mt7915_mac_enable_rtscts(dev, vif, info->use_cts_prot); |
| 46 | - |
| 47 | if (changed & BSS_CHANGED_ERP_SLOT) { |
| 48 | int slottime = info->use_short_slot ? 9 : 20; |
| 49 | |
| 50 | diff --git a/mt7915/mt7915.h b/mt7915/mt7915.h |
| 51 | index 7c185a1..01d8552 100644 |
| 52 | --- a/mt7915/mt7915.h |
| 53 | +++ b/mt7915/mt7915.h |
| 54 | @@ -760,8 +760,6 @@ bool mt7915_mac_wtbl_update(struct mt7915_dev *dev, int idx, u32 mask); |
| 55 | void mt7915_mac_reset_counters(struct mt7915_phy *phy); |
| 56 | void mt7915_mac_cca_stats_reset(struct mt7915_phy *phy); |
| 57 | void mt7915_mac_enable_nf(struct mt7915_dev *dev, bool ext_phy); |
| 58 | -void mt7915_mac_enable_rtscts(struct mt7915_dev *dev, |
| 59 | - struct ieee80211_vif *vif, bool enable); |
| 60 | void mt7915_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi, |
| 61 | struct sk_buff *skb, struct mt76_wcid *wcid, int pid, |
| 62 | struct ieee80211_key_conf *key, |
| 63 | -- |
| 64 | 2.45.2 |
| 65 | |