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:
parent
1a5a04c3de
commit
7ce3304ab3
1 changed files with 0 additions and 5 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue