]> 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)
commit0dc64f4797bfc292fddd84f41775957ad735b7b7
tree178fea0a150cfec8ddb0b6b418bcbd62d85c704a
parent8ae2f793d21f67d4ab95029bb6873efffa36907b
mwifiex: fix 802.11n/WPA detection

Commit f7131db2dfe1 ("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 f7131db2dfe1 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: f7131db2dfe1 ("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