wifi: mac80211: minstrel_ht: remove unused has_mrr member from struct minstrel_priv
authorPeter Seiderer <ps.report@gmx.net>
Thu, 15 Sep 2022 19:52:43 +0000 (21:52 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Oct 2022 13:25:05 +0000 (15:25 +0200)
Remove unused has_mrr (has multi-rate retry capabilities) member
from struct minstrel_priv (only set once in minstrel_ht_alloc, never
used again).

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c
net/mac80211/rc80211_minstrel_ht.h

index 7f3f5f5..f936d6b 100644 (file)
@@ -1963,9 +1963,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;
 
index 1766ff0..4be0401 100644 (file)
@@ -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;