aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-05-14 16:41:46 (GMT)
committerJouni Malinen <j@w1.fi>2016-05-14 16:43:30 (GMT)
commit23d71a028695ac8a7b6be7971a294b06c1eaa4fa (patch)
tree18c5e415248517010b52fae2cb82b545dfe8dd31 /wpa_supplicant
parent6641954321369dfb1f68e7eddb91edf1dacaae4b (diff)
downloadhostap-23d71a028695ac8a7b6be7971a294b06c1eaa4fa.zip
hostap-23d71a028695ac8a7b6be7971a294b06c1eaa4fa.tar.gz
hostap-23d71a028695ac8a7b6be7971a294b06c1eaa4fa.tar.bz2
Set wpa_psk_set in wpa_supplicant AP mode is PSK is available
While this is unlikely to make any practical difference, it is better to keep consistent with hostapd configuration parser. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/ap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index a4b0874..4ed0400 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -306,6 +306,7 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
return -1;
os_memcpy(bss->ssid.wpa_psk->psk, ssid->psk, PMK_LEN);
bss->ssid.wpa_psk->group = 1;
+ bss->ssid.wpa_psk_set = 1;
} else if (ssid->passphrase) {
bss->ssid.wpa_passphrase = os_strdup(ssid->passphrase);
} else if (ssid->wep_key_len[0] || ssid->wep_key_len[1] ||