]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add more debug prints for wpa_sm_set_pmk() calls
authorJouni Malinen <j@w1.fi>
Sun, 8 Apr 2018 16:11:07 +0000 (19:11 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 8 Apr 2018 16:11:07 +0000 (19:11 +0300)
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>
wpa_supplicant/wpa_supplicant.c

index dcec68a0383b4ecd553ee904eb25152e5c23809b..c0922d39e32f476c26aae41e81206a297f368a37 100644 (file)
@@ -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;