Skip to contentSkip to conversation

wifi: mac80211: minstrel_ht: remove unused has_mrr member from struct minstrel_priv

PATCH New Peter Seiderer 1 participant 1 message Sep 15, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: mac80211: minstrel_ht: remove unused has_mrr member from struct minstrel_priv

Remove unused has_mrr (has multi-rate retry capabilities) member from struct minstrel_priv (only set once in minstrel_ht_alloc, never used again).

---
 net/mac80211/rc80211_minstrel_ht.c | 3 ---
 net/mac80211/rc80211_minstrel_ht.h | 1 -
 2 files changed, 4 deletions(-)
net/mac80211/rc80211_minstrel_ht.c +0 -3
index 24c3c055db6d..d262a6199dd5 100644
@@ -1961,9 +1961,6 @@ minstrel_ht_alloc(struct ieee80211_hw *hw)
 		/* safe default, does not necessarily have to match hw properties */
 		mp->max_retry = 7;
 
-	if (hw->max_rates >= 4)
-		mp->has_mrr = true;
-
 	mp->hw = hw;
 	mp->update_interval = HZ / 20;
 
net/mac80211/rc80211_minstrel_ht.h +0 -1
index 1766ff0c78d3..4be0401f7721 100644
@@ -74,7 +74,6 @@
 
 struct minstrel_priv {
 	struct ieee80211_hw *hw;
-	bool has_mrr;
 	unsigned int cw_min;
 	unsigned int cw_max;
 	unsigned int max_retry;
Signature · 1 line
2.37.3