From: Jouni Malinen Date: Sun, 21 Nov 2010 11:18:02 +0000 (+0200) Subject: wlantest: Add more debugging details for PMK selection X-Git-Tag: hostap-1-bp~762 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0778c8f5ed65c9699862407e321e1ef0644cb3c6;p=thirdparty%2Fhostap.git wlantest: Add more debugging details for PMK selection --- diff --git a/wlantest/rx_eapol.c b/wlantest/rx_eapol.c index cbab6737c..9d920e3a9 100644 --- a/wlantest/rx_eapol.c +++ b/wlantest/rx_eapol.c @@ -131,15 +131,20 @@ static void derive_ptk(struct wlantest *wt, struct wlantest_bss *bss, { struct wlantest_pmk *pmk; + wpa_printf(MSG_DEBUG, "Trying to derive PTK for " MACSTR, + MAC2STR(sta->addr)); dl_list_for_each(pmk, &bss->pmk, struct wlantest_pmk, list) { + wpa_printf(MSG_DEBUG, "Try per-BSS PMK"); if (try_pmk(bss, sta, ver, data, len, pmk) == 0) return; } dl_list_for_each(pmk, &wt->pmk, struct wlantest_pmk, list) { + wpa_printf(MSG_DEBUG, "Try global PMK"); if (try_pmk(bss, sta, ver, data, len, pmk) == 0) return; } + wpa_printf(MSG_DEBUG, "No matching PMK found to derive PTK"); }