summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/561-minstrel_sample_retransmit.patch
blob: 2ae03d8787050e9f22d1364a1414243cce426ddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/net/mac80211/rc80211_minstrel_ht.c
+++ b/net/mac80211/rc80211_minstrel_ht.c
@@ -506,7 +506,9 @@ minstrel_ht_set_rate(struct minstrel_pri
 	if (!mr->retry_updated)
 		minstrel_calc_retransmit(mp, mi, index);
 
-	if (mr->probability < MINSTREL_FRAC(20, 100))
+	if (sample)
+		rate->count = 1;
+	else if (mr->probability < MINSTREL_FRAC(20, 100))
 		rate->count = 2;
 	else if (rtscts)
 		rate->count = mr->retry_count_rtscts;