wext: Fix non-WPA/WPA2 connection with extra IEs
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 28 Nov 2014 15:21:51 +0000 (17:21 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 28 Nov 2014 21:02:30 +0000 (23:02 +0200)
commitbd26031b4b87672012d54b77d3bf6e7bece24af4
treec7c1b4bf06f534b5e3ccb59850ced94157cfc9ee
parentb67cdbc16279b84633953a79679c775d98dde5f0
wext: Fix non-WPA/WPA2 connection with extra IEs

The associate() handler was not prepared for params->wpa_ie containing
some other IEs than WPA/RSN IE and ended up configuring security policy
incorrectly for open networks if such IEs were present. Fix this by
using wpa_proto parameter instead of IEs to determine security policy
for driver configuration.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver_wext.c