mac80211: parse wide bandwidth channel switch IE with workaround
authorJohannes Berg <johannes.berg@intel.com>
Tue, 5 Jul 2016 12:23:14 +0000 (15:23 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Jul 2016 12:55:04 +0000 (14:55 +0200)
commit92b3a28a2b4b2fb777b64f0891a4d3388f617c15
tree292fdc615b7b8b9bdab0a2fb1fb16b18ebda88eb
parent7d10f6b179bc82e6633a4521a4cd69ad6846723e
mac80211: parse wide bandwidth channel switch IE with workaround

Continuing the workaround implemented in commit 23665aaf9170
("mac80211: Interoperability workaround for 80+80 and 160 MHz channels")
use the same code to parse the Wide Bandwidth Channel Switch element
by converting to VHT Operation element since the spec also just refers
to that for parsing semantics, particularly with the workaround.

While at it, remove some dead code - the IEEE80211_STA_DISABLE_40MHZ
flag can never be set at this point since it's checked earlier and the
wide_bw_chansw_ie pointer is set to NULL if it's set.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/spectmgmt.c