aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>2011-11-16 16:30:36 +0200
committerJouni Malinen <j@w1.fi>2011-11-16 16:30:36 +0200
commit0399f2e4e5fa6b2994becfa2495cd4bc69240455 (patch)
tree9e821b60c771389f7047e8758b647c28224949b7
parent39185dfa549f076a6be114e0149a3649d302f477 (diff)
downloadexternal_wpa_supplicant_8_ti-0399f2e4e5fa6b2994becfa2495cd4bc69240455.zip
external_wpa_supplicant_8_ti-0399f2e4e5fa6b2994becfa2495cd4bc69240455.tar.gz
external_wpa_supplicant_8_ti-0399f2e4e5fa6b2994becfa2495cd4bc69240455.tar.bz2
wpa_supplicant: Set configured auth_algs for AP mode
In AP mode, authentication algorithm is reset in hostapd_config_defaults_bss() and never set to the configured one. This would pass the default auth_algs (OPEN|SHARED) to driver regardless of what the wpa_supplicant configuration is requesting. Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
-rw-r--r--wpa_supplicant/ap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 1332eff..91c9126 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -137,6 +137,9 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
bss->ssid.ssid_len = ssid->ssid_len;
bss->ssid.ssid_set = 1;
+ if (ssid->auth_alg)
+ bss->auth_algs = ssid->auth_alg;
+
if (wpa_key_mgmt_wpa_psk(ssid->key_mgmt))
bss->wpa = ssid->proto;
bss->wpa_key_mgmt = ssid->key_mgmt;