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.
This commit is contained in:
parent
fc215bfe86
commit
545cc6af25
1 changed files with 4 additions and 0 deletions
|
@ -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",
|
wpa_msg(wpa_s, MSG_INFO, WPS_EVENT_FAIL "msg=%d config_error=%d",
|
||||||
fail->msg, fail->config_error);
|
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_clear_wps(wpa_s);
|
||||||
wpas_notify_wps_event_fail(wpa_s, fail);
|
wpas_notify_wps_event_fail(wpa_s, fail);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue