363-mac80211-minstrel_ht-fix-per-group-max-throughput-ra.patch 713 B

12345678910111213141516171819202122
  1. From: Felix Fietkau <[email protected]>
  2. Date: Fri, 14 Jun 2019 21:12:04 +0200
  3. Subject: [PATCH] mac80211: minstrel_ht: fix per-group max throughput rate
  4. initialization
  5. The group number needs to be multiplied by the number of rates per group
  6. to get the full rate index
  7. Signed-off-by: Felix Fietkau <[email protected]>
  8. ---
  9. --- a/net/mac80211/rc80211_minstrel_ht.c
  10. +++ b/net/mac80211/rc80211_minstrel_ht.c
  11. @@ -576,7 +576,7 @@ minstrel_ht_update_stats(struct minstrel
  12. /* (re)Initialize group rate indexes */
  13. for(j = 0; j < MAX_THR_RATES; j++)
  14. - tmp_group_tp_rate[j] = group;
  15. + tmp_group_tp_rate[j] = MCS_GROUP_RATES * group;
  16. for (i = 0; i < MCS_GROUP_RATES; i++) {
  17. if (!(mi->supported[group] & BIT(i)))