373-mac80211-minstrel-fix-using-short-preamble-CCK-rates.patch 815 B

1234567891011121314151617181920212223
  1. From: Felix Fietkau <[email protected]>
  2. Date: Sat, 10 Feb 2018 13:43:07 +0100
  3. Subject: [PATCH] mac80211: minstrel: fix using short preamble CCK rates on
  4. HT clients
  5. mi->supported[MINSTREL_CCK_GROUP] needs to be updated
  6. Fixes: 782dda00ab8e ("mac80211: minstrel_ht: move short preamble check out of get_rate")
  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. @@ -1268,7 +1268,8 @@ minstrel_ht_update_caps(void *priv, stru
  12. goto use_legacy;
  13. if (test_sta_flag(sinfo, WLAN_STA_SHORT_PREAMBLE))
  14. - mi->cck_supported_short |= mi->cck_supported_short << 4;
  15. + mi->supported[MINSTREL_CCK_GROUP] |=
  16. + mi->cck_supported_short << 4;
  17. /* create an initial rate table with the lowest supported rates */
  18. minstrel_ht_update_stats(mp, mi);