]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix HT beacon-based channel switch handling
authorJohannes Berg <johannes.berg@intel.com>
Fri, 3 May 2013 07:35:35 +0000 (09:35 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 16 May 2013 20:38:04 +0000 (22:38 +0200)
commitc0a41612933a8c3a0e0b9ebc75f403df7007526c
tree4ee38fe0899a636d991ac704fec207de1b90f039
parent2474f2fc65daaf8fae3f42e9a80a1ceb94650532
mac80211: fix HT beacon-based channel switch handling

When an HT AP is advertising channel switch in a beacon, it
doesn't (and shouldn't, according to 802.11-2012 Table 8-20)
include a secondary channel offset element. The only possible
interpretation is that the previous secondary channel offset
remains valid, so use that when switching channel based only
on beacon information.

VHT requires the Wide Bandwidth Channel Switch subelement to
be present in the Channel Switch Wrapper element, so the code
for that is probably ok (see 802.11ac Draft 4, 8.4.2.165.)

Reported-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c