aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wps_supplicant.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-10-14 17:49:54 (GMT)
committerJouni Malinen <j@w1.fi>2010-10-14 17:49:54 (GMT)
commit81611b95ff786db2a7fb86cea2f34e7dc5bee07a (patch)
treefeb85f297dffb02e44d3da813adcc910233b2724 /wpa_supplicant/wps_supplicant.c
parentd054a4622c97848c5aaa328e1bc0d5e9d7c6855f (diff)
downloadhostap-81611b95ff786db2a7fb86cea2f34e7dc5bee07a.zip
hostap-81611b95ff786db2a7fb86cea2f34e7dc5bee07a.tar.gz
hostap-81611b95ff786db2a7fb86cea2f34e7dc5bee07a.tar.bz2
WPS: Add Config Error into WPS-FAIL events
This makes it easier to figure out what could have failed in the WPS protocol and potentially provide more information for the user on how to resolve the issue.
Diffstat (limited to 'wpa_supplicant/wps_supplicant.c')
-rw-r--r--wpa_supplicant/wps_supplicant.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 0033665..b9e7276 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -391,7 +391,8 @@ static void wpa_supplicant_wps_event_m2d(struct wpa_supplicant *wpa_s,
static void wpa_supplicant_wps_event_fail(struct wpa_supplicant *wpa_s,
struct wps_event_fail *fail)
{
- wpa_msg(wpa_s, MSG_INFO, WPS_EVENT_FAIL "msg=%d", fail->msg);
+ wpa_msg(wpa_s, MSG_INFO, WPS_EVENT_FAIL "msg=%d config_error=%d",
+ fail->msg, fail->config_error);
wpas_clear_wps(wpa_s);
wpas_notify_wps_event_fail(wpa_s, fail);
}