aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_supplicant.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2018-04-08 16:11:07 (GMT)
committerJouni Malinen <j@w1.fi>2018-04-08 16:11:07 (GMT)
commit66dbc8d9c32200b4365959da7d4d4b29882ccb8f (patch)
treea182d265200c95ab24b410a0dda50f6528ee8232 /wpa_supplicant/wpa_supplicant.c
parent26e0ada47f17a1fe9d5817bf5342edf88a811592 (diff)
downloadhostap-66dbc8d9c32200b4365959da7d4d4b29882ccb8f.zip
hostap-66dbc8d9c32200b4365959da7d4d4b29882ccb8f.tar.gz
hostap-66dbc8d9c32200b4365959da7d4d4b29882ccb8f.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant/wpa_supplicant.c')
-rw-r--r--wpa_supplicant/wpa_supplicant.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index dcec68a..c0922d3 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -1468,6 +1468,8 @@ int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
int psk_set = 0;
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,
NULL);
psk_set = 1;
@@ -1536,6 +1538,9 @@ int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
ext_password_free(pw);
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,
NULL);
psk_set = 1;