projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a38075
)
mac80211: minstrel_ht: fix per-group max throughput rate initialization
author
Felix Fietkau
<nbd@nbd.name>
Tue, 20 Aug 2019 09:54:46 +0000
(11:54 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Wed, 21 Aug 2019 09:08:21 +0000
(11:08 +0200)
The group number needs to be multiplied by the number of rates per group
to get the full rate index
Fixes:
5935839ad735
("mac80211: improve minstrel_ht rate sorting by throughput & probability")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link:
https://lore.kernel.org/r/20190820095449.45255-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c
patch
|
blob
|
history
diff --git
a/net/mac80211/rc80211_minstrel_ht.c
b/net/mac80211/rc80211_minstrel_ht.c
index
5a882da
..
ba230b0
100644
(file)
--- a/
net/mac80211/rc80211_minstrel_ht.c
+++ b/
net/mac80211/rc80211_minstrel_ht.c
@@
-575,7
+575,7
@@
minstrel_ht_update_stats(struct minstrel_priv *mp, struct minstrel_ht_sta *mi)
/* (re)Initialize group rate indexes */
for(j = 0; j < MAX_THR_RATES; j++)
- tmp_group_tp_rate[j] = group;
+ tmp_group_tp_rate[j] =
MCS_GROUP_RATES *
group;
for (i = 0; i < MCS_GROUP_RATES; i++) {
if (!(mi->supported[group] & BIT(i)))