Skip to contentSkip to conversation

mac80211: minstrel_ht: fix a logic error in RTS/CTS handling

PATCH Applied Felix Fietkau 2 participants 2 messages Feb 24, 2016 – Mar 1, 2016 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: minstrel_ht: fix a logic error in RTS/CTS handling

RTS/CTS needs to be enabled if the rate is a fallback rate *or* if it's a dual-stream rate and the sta is in dynamic SMPS mode.

Fixes a3ebb4e1b763 ("mac80211: minstrel_ht: handle peers in dynamic SMPS")
---
 net/mac80211/rc80211_minstrel_ht.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/rc80211_minstrel_ht.c +1 -1
index 702328b..5e3dc7e 100644
@@ -872,7 +872,7 @@ minstrel_ht_set_rate(struct minstrel_priv *mp, struct minstrel_ht_sta *mi,
 	 *  - if station is in dynamic SMPS (and streams > 1)
 	 *  - for fallback rates, to increase chances of getting through
 	 */
-	if (offset > 0 &&
+	if (offset > 0 ||
 	    (mi->sta->smps_mode == IEEE80211_SMPS_DYNAMIC &&
 	     group->streams > 1)) {
 		ratetbl->rate[offset].count = ratetbl->rate[offset].count_rts;
Signature · 1 line
2.2.2
maintainer Applied
#1 lore raw
Quoted 3 lines · Felix Fietkau

RTS/CTS needs to be enabled if the rate is a fallback rate *or* if it's a dual-stream rate and the sta is in dynamic SMPS mode.

Applied, thanks.

johannes