]>
Commit | Line | Data |
---|---|---|
7accec13 GKH |
1 | From cb664981607a6b5b3d670ad57bbda893b2528d96 Mon Sep 17 00:00:00 2001 |
2 | From: Johannes Berg <johannes.berg@intel.com> | |
3 | Date: Thu, 27 Feb 2014 20:47:53 +0100 | |
4 | Subject: mac80211: fix association to 20/40 MHz VHT networks | |
5 | ||
6 | From: Johannes Berg <johannes.berg@intel.com> | |
7 | ||
8 | commit cb664981607a6b5b3d670ad57bbda893b2528d96 upstream. | |
9 | ||
10 | When a VHT network uses 20 or 40 MHz as per the HT operation | |
11 | information, the channel center frequency segment 0 field in | |
12 | the VHT operation information is reserved, so ignore it. | |
13 | ||
14 | This fixes association with such networks when the AP puts 0 | |
15 | into the field, previously we'd disconnect due to an invalid | |
16 | channel with the message | |
17 | wlan0: AP VHT information is invalid, disable VHT | |
18 | ||
19 | Fixes: f2d9d270c15ae ("mac80211: support VHT association") | |
20 | Reported-by: Tim Nelson <tim.l.nelson@gmail.com> | |
21 | Signed-off-by: Johannes Berg <johannes.berg@intel.com> | |
22 | Signed-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; |