diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-03-08 22:54:20 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-03-10 11:57:42 +0100 |
commit | 916277a033bd1e31a82eace1b512c2ed03590172 (patch) | |
tree | 9688c9e3d8b8105f4ebbf92a69ae6e4ed213c573 /package/kernel | |
parent | 6011f7bcf0bfab0d65fb0522de0c210565fe4e74 (diff) | |
download | mtk-20170518-916277a033bd1e31a82eace1b512c2ed03590172.zip mtk-20170518-916277a033bd1e31a82eace1b512c2ed03590172.tar.gz mtk-20170518-916277a033bd1e31a82eace1b512c2ed03590172.tar.bz2 |
mac80211: minstrel: make short preamble CCK available when not used at connect time
The BSS short preamble state can change without rate control
update notification.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/mac80211/patches/373-mac80211-minstrel-fix-using-short-preamble-CCK-rates.patch | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/package/kernel/mac80211/patches/373-mac80211-minstrel-fix-using-short-preamble-CCK-rates.patch b/package/kernel/mac80211/patches/373-mac80211-minstrel-fix-using-short-preamble-CCK-rates.patch index 1255da9..502d8c7 100644 --- a/package/kernel/mac80211/patches/373-mac80211-minstrel-fix-using-short-preamble-CCK-rates.patch +++ b/package/kernel/mac80211/patches/373-mac80211-minstrel-fix-using-short-preamble-CCK-rates.patch @@ -11,13 +11,21 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name> --- a/net/mac80211/rc80211_minstrel_ht.c +++ b/net/mac80211/rc80211_minstrel_ht.c -@@ -1268,7 +1268,8 @@ minstrel_ht_update_caps(void *priv, stru +@@ -1135,7 +1135,6 @@ minstrel_ht_update_caps(void *priv, stru + struct ieee80211_mcs_info *mcs = &sta->ht_cap.mcs; + u16 ht_cap = sta->ht_cap.cap; + struct ieee80211_sta_vht_cap *vht_cap = &sta->vht_cap; +- struct sta_info *sinfo = container_of(sta, struct sta_info, sta); + int use_vht; + int n_supported = 0; + int ack_dur; +@@ -1267,8 +1266,7 @@ minstrel_ht_update_caps(void *priv, stru + if (!n_supported) goto use_legacy; - if (test_sta_flag(sinfo, WLAN_STA_SHORT_PREAMBLE)) +- 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; ++ 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); |