]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.10.34/mac80211-fix-association-to-20-40-mhz-vht-networks.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.10.34 / mac80211-fix-association-to-20-40-mhz-vht-networks.patch
CommitLineData
7accec13
GKH
1From cb664981607a6b5b3d670ad57bbda893b2528d96 Mon Sep 17 00:00:00 2001
2From: Johannes Berg <johannes.berg@intel.com>
3Date: Thu, 27 Feb 2014 20:47:53 +0100
4Subject: mac80211: fix association to 20/40 MHz VHT networks
5
6From: Johannes Berg <johannes.berg@intel.com>
7
8commit cb664981607a6b5b3d670ad57bbda893b2528d96 upstream.
9
10When a VHT network uses 20 or 40 MHz as per the HT operation
11information, the channel center frequency segment 0 field in
12the VHT operation information is reserved, so ignore it.
13
14This fixes association with such networks when the AP puts 0
15into the field, previously we'd disconnect due to an invalid
16channel with the message
17wlan0: AP VHT information is invalid, disable VHT
18
19Fixes: f2d9d270c15ae ("mac80211: support VHT association")
20Reported-by: Tim Nelson <tim.l.nelson@gmail.com>
21Signed-off-by: Johannes Berg <johannes.berg@intel.com>
22Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23
24---
25 net/mac80211/mlme.c | 1 +
26 1 file changed, 1 insertion(+)
27
28--- a/net/mac80211/mlme.c
29+++ b/net/mac80211/mlme.c
30@@ -310,6 +310,7 @@ ieee80211_determine_chantype(struct ieee
31 switch (vht_oper->chan_width) {
32 case IEEE80211_VHT_CHANWIDTH_USE_HT:
33 vht_chandef.width = chandef->width;
34+ vht_chandef.center_freq1 = chandef->center_freq1;
35 break;
36 case IEEE80211_VHT_CHANWIDTH_80MHZ:
37 vht_chandef.width = NL80211_CHAN_WIDTH_80;