Add more debug prints for wpa_sm_set_pmk() calls

Couple of these were not preceded by wpa_hexdump_key(PSK) which made it
more difficult to interpret the debug log.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2018-04-08 19:11:07 +03:00
parent 26e0ada47f
commit 66dbc8d9c3

View file

@ -1468,6 +1468,8 @@ int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
int psk_set = 0; int psk_set = 0;
if (ssid->psk_set) { if (ssid->psk_set) {
wpa_hexdump_key(MSG_MSGDUMP, "PSK (set in config)",
ssid->psk, PMK_LEN);
wpa_sm_set_pmk(wpa_s->wpa, ssid->psk, PMK_LEN, NULL, wpa_sm_set_pmk(wpa_s->wpa, ssid->psk, PMK_LEN, NULL,
NULL); NULL);
psk_set = 1; psk_set = 1;
@ -1536,6 +1538,9 @@ int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
ext_password_free(pw); ext_password_free(pw);
return -1; return -1;
} }
wpa_hexdump_key(MSG_MSGDUMP,
"PSK (from external PSK)",
psk, PMK_LEN);
wpa_sm_set_pmk(wpa_s->wpa, psk, PMK_LEN, NULL, wpa_sm_set_pmk(wpa_s->wpa, psk, PMK_LEN, NULL,
NULL); NULL);
psk_set = 1; psk_set = 1;