airo: fix IW_AUTH_ALG_OPEN_SYSTEM
authorOndrej Zary <linux@rainbow-software.org>
Mon, 21 Sep 2015 13:44:24 +0000 (15:44 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 29 Sep 2015 08:07:00 +0000 (11:07 +0300)
commit4a0f2ea79797642341020eae5918871db94fc769
treebd7f773955046a9acbec1fe7663484f993e7beb4
parentcf75496b6fc2fd8dd74633b0f49f4fa3f58f36e1
airo: fix IW_AUTH_ALG_OPEN_SYSTEM

IW_AUTH_ALG_OPEN_SYSTEM is ambiguous in set_auth for WEP as
wpa_supplicant uses it for both no encryption and WEP open system.
Cache the last mode set (only of these two) and use it here.

This allows wpa_supplicant to work with unencrypted APs.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/airo.c