aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wps_supplicant.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-10-14 17:52:31 (GMT)
committerJouni Malinen <j@w1.fi>2010-10-14 17:52:31 (GMT)
commit545cc6af2593b3174ae7813d2fd658074ff44e23 (patch)
tree710720518b0e97304d49aefc503230ad0ec8eeef /wpa_supplicant/wps_supplicant.c
parentfc215bfe864ff56028a7c4605533a2814ec0a736 (diff)
downloadhostap-545cc6af2593b3174ae7813d2fd658074ff44e23.zip
hostap-545cc6af2593b3174ae7813d2fd658074ff44e23.tar.gz
hostap-545cc6af2593b3174ae7813d2fd658074ff44e23.tar.bz2
P2P: Send WPS-FAIL event to parent interface, too
This makes it easier to figure out what went wrong during group formation when per-group interfaces are used.
Diffstat (limited to 'wpa_supplicant/wps_supplicant.c')
-rw-r--r--wpa_supplicant/wps_supplicant.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index b9e7276..b9c22f9 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -393,6 +393,10 @@ static void wpa_supplicant_wps_event_fail(struct wpa_supplicant *wpa_s,
{
wpa_msg(wpa_s, MSG_INFO, WPS_EVENT_FAIL "msg=%d config_error=%d",
fail->msg, fail->config_error);
+ if (wpa_s->parent && wpa_s->parent != wpa_s)
+ wpa_msg(wpa_s->parent, 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);
}