aboutsummaryrefslogtreecommitdiffstats
path: root/src/wps
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-09-08 15:09:38 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-07 11:48:49 (GMT)
commitb6881b5218bdbd0c18a465daced3efdc0eb5ec53 (patch)
tree65275acf20ddb30a8298c01106d19cbabfd4d572 /src/wps
parent67a88a747c4bd6212a9e2330e8663455135fca63 (diff)
downloadhostap-b6881b5218bdbd0c18a465daced3efdc0eb5ec53.zip
hostap-b6881b5218bdbd0c18a465daced3efdc0eb5ec53.tar.gz
hostap-b6881b5218bdbd0c18a465daced3efdc0eb5ec53.tar.bz2
WPS NFC: Add more debug for NFC Password Token matching
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/wps')
-rw-r--r--src/wps/wps_registrar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wps/wps_registrar.c b/src/wps/wps_registrar.c
index e8ebfab..ef17617 100644
--- a/src/wps/wps_registrar.c
+++ b/src/wps/wps_registrar.c
@@ -1374,7 +1374,8 @@ static int wps_get_dev_password(struct wps_data *wps)
}
if (pin == NULL) {
wpa_printf(MSG_DEBUG, "WPS: No Device Password available for "
- "the Enrollee");
+ "the Enrollee (context %p registrar %p)",
+ wps->wps, wps->wps->registrar);
wps_cb_pin_needed(wps->wps->registrar, wps->uuid_e,
&wps->peer_dev);
return -1;
@@ -2536,6 +2537,8 @@ static enum wps_process_res wps_process_m1(struct wps_data *wps,
const u8 *addr[1];
u8 hash[WPS_HASH_LEN];
+ wpa_printf(MSG_DEBUG, "WPS: Searching for NFC token match for id=%d (ctx %p registrar %p)",
+ wps->dev_pw_id, wps->wps, wps->wps->registrar);
token = wps_get_nfc_pw_token(
&wps->wps->registrar->nfc_pw_tokens, wps->dev_pw_id);
if (token) {