]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0bf7d1db57881f807e84fce3a081428b6884d060
tree292fdc615b7b8b9bdab0a2fb1fb16b18ebda88eb
parent0e228e9010651f49895f8c146e16666df0f01b1c
mac80211: parse wide bandwidth channel switch IE with workaround

Continuing the workaround implemented in commit 85147bfb0dbb
("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