2018-02-12 20:38:30 +00:00
|
|
|
From: Felix Fietkau <nbd@nbd.name>
|
|
|
|
Date: Sat, 10 Feb 2018 13:43:07 +0100
|
|
|
|
Subject: [PATCH] mac80211: minstrel: fix using short preamble CCK rates on
|
|
|
|
HT clients
|
|
|
|
|
|
|
|
mi->supported[MINSTREL_CCK_GROUP] needs to be updated
|
|
|
|
|
|
|
|
Fixes: 782dda00ab8e ("mac80211: minstrel_ht: move short preamble check out of get_rate")
|
|
|
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
|
|
---
|
|
|
|
|
|
|
|
--- a/net/mac80211/rc80211_minstrel_ht.c
|
|
|
|
+++ b/net/mac80211/rc80211_minstrel_ht.c
|
2018-03-01 12:34:41 +00:00
|
|
|
@@ -1268,7 +1268,8 @@ minstrel_ht_update_caps(void *priv, stru
|
2018-02-12 20:38:30 +00:00
|
|
|
goto use_legacy;
|
|
|
|
|
|
|
|
if (test_sta_flag(sinfo, WLAN_STA_SHORT_PREAMBLE))
|
|
|
|
- mi->cck_supported_short |= mi->cck_supported_short << 4;
|
|
|
|
+ mi->supported[MINSTREL_CCK_GROUP] |=
|
|
|
|
+ mi->cck_supported_short << 4;
|
|
|
|
|
|
|
|
/* create an initial rate table with the lowest supported rates */
|
|
|
|
minstrel_ht_update_stats(mp, mi);
|