iw: update to 3.17
[openwrt/svn-archive/archive.git] / package / kernel / mac80211 / patches / 312-mac80211-skip-legacy-rate-mask-handling-for-VHT-rate.patch
1 From: Felix Fietkau <nbd@openwrt.org>
2 Date: Sat, 15 Nov 2014 03:45:56 +0100
3 Subject: [PATCH] mac80211: skip legacy rate mask handling for VHT rates
4
5 The rate mask code currently assumes that a rate is legacy if
6 IEEE80211_TX_RC_MCS is not set. This might be the cause of bogus VHT
7 rates being reported with minstrel_ht.
8
9 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
10 ---
11
12 --- a/net/mac80211/rate.c
13 +++ b/net/mac80211/rate.c
14 @@ -385,7 +385,7 @@ static void rate_idx_match_mask(struct i
15 *rate = alt_rate;
16 return;
17 }
18 - } else {
19 + } else if (!(rate->flags & IEEE80211_TX_RC_VHT_MCS)) {
20 /* handle legacy rates */
21 if (rate_idx_match_legacy_mask(rate, sband->n_bitrates, mask))
22 return;