Do not forget wpa_passphrase so that WPS can use it

Send ASCII passphrase instead of derived PSK if the configuration uses
the passphrase.
This commit is contained in:
Jouni Malinen 2009-01-24 12:51:28 +02:00
parent 1a5a04c3de
commit 7ce3304ab3

View file

@ -476,11 +476,6 @@ int hostapd_setup_wpa_psk(struct hostapd_bss_config *conf)
wpa_hexdump(MSG_DEBUG, "PSK (from passphrase)", wpa_hexdump(MSG_DEBUG, "PSK (from passphrase)",
ssid->wpa_psk->psk, PMK_LEN); ssid->wpa_psk->psk, PMK_LEN);
ssid->wpa_psk->group = 1; ssid->wpa_psk->group = 1;
os_memset(ssid->wpa_passphrase, 0,
os_strlen(ssid->wpa_passphrase));
os_free(ssid->wpa_passphrase);
ssid->wpa_passphrase = NULL;
} }
if (ssid->wpa_psk_file) { if (ssid->wpa_psk_file) {