BACKPORT: mwifiex: fix WPA connection problem

Device fails to connect to some AP's configured in WPA
security mode. Currently IE buffer parsing logic in driver
expects WPA IE to be present at the beginning of IE buffer.
Otherwise connection is failed with 'incompatible network
setting' error.

This patch fixes the problem by improving IE buffer parsing
logic.

Signed-off-by: chunfan chen <jeffc@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from commit 84a38fb3167e6cc25c4acfcbb79aa0d800542fd7)

BUG=chrome-os-partner:51140
TEST=`test_that -b peach_pit dut network_WiFi_SimpleConnect.wifi_checkWPA_multi`

Change-Id: Iba536aa6d5613ed3bd5b55448300a091b5e8715e
Reviewed-on: https://chromium-review.googlesource.com/332323
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Reviewed-on: https://chromium-review.googlesource.com/341295
Reviewed-by: Wei-Ning Huang <wnhuang@chromium.org>
1 file changed