P2P: Add provision discovery failure event

Add provisional discovery failure ctrl_iface event
(P2P-PROV-DISC-FAILURE) to indicate to the application layer in case of
PD failure.

Signed-off-by: Deepthi Gowri <deepthi@codeaurora.org>
This commit is contained in:
Deepthi Gowri 2012-04-17 19:44:13 +03:00 committed by Jouni Malinen
parent b55aca4672
commit f65a239ba4
2 changed files with 6 additions and 0 deletions

View file

@ -1852,6 +1852,10 @@ static void wpas_prov_disc_fail(void *ctx, const u8 *peer,
{
struct wpa_supplicant *wpa_s = ctx;
wpa_msg(wpa_s, MSG_INFO, P2P_EVENT_PROV_DISC_FAILURE
" p2p_dev_addr=" MACSTR " status=%d",
MAC2STR(wpa_s->global->p2p_dev_addr), status);
wpas_notify_p2p_provision_discovery(wpa_s, peer, 0 /* response */,
status, 0, 0);
}