]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix 802.11n/WPA detection
authorBrian Norris <briannorris@chromium.org>
Wed, 24 Jul 2019 19:46:34 +0000 (12:46 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 30 Jul 2019 15:00:46 +0000 (18:00 +0300)
commit4e2e6e65c74dd7607f825a298559ee3b68c02aea
tree178fea0a150cfec8ddb0b6b418bcbd62d85c704a
parent3946fc9291da929ed6836ab79a3b87c34d142954
mwifiex: fix 802.11n/WPA detection

Commit daa6b2ba2eec ("mwifiex: Don't abort on small, spec-compliant
vendor IEs") adjusted the ieee_types_vendor_header struct, which
inadvertently messed up the offsets used in
mwifiex_is_wpa_oui_present(). Add that offset back in, mirroring
mwifiex_is_rsn_oui_present().

As it stands, commit daa6b2ba2eec breaks compatibility with WPA (not
WPA2) 802.11n networks, since we hit the "info: Disable 11n if AES is
not supported by AP" case in mwifiex_is_network_compatible().

Fixes: daa6b2ba2eec ("mwifiex: Don't abort on small, spec-compliant vendor IEs")
Cc: <stable@vger.kernel.org>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/main.h
drivers/net/wireless/marvell/mwifiex/scan.c