Do not forget wpa_passphrase so that WPS can use it
authorJouni Malinen <j@w1.fi>
Sat, 24 Jan 2009 10:51:28 +0000 (12:51 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 24 Jan 2009 10:51:28 +0000 (12:51 +0200)
Send ASCII passphrase instead of derived PSK if the configuration uses
the passphrase.

hostapd/config.c

index 5097f4d..50faf03 100644 (file)
@@ -476,11 +476,6 @@ int hostapd_setup_wpa_psk(struct hostapd_bss_config *conf)
                wpa_hexdump(MSG_DEBUG, "PSK (from passphrase)",
                            ssid->wpa_psk->psk, PMK_LEN);
                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) {