From: Vasanthakumar Thiagarajan Date: Wed, 16 Nov 2011 14:30:36 +0000 (+0200) Subject: wpa_supplicant: Set configured auth_algs for AP mode X-Git-Tag: aosp-jb-start~325 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0399f2e4e5fa6b2994becfa2495cd4bc69240455;p=thirdparty%2Fhostap.git 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 --- diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index 1332eff57..91c9126ab 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;