P2P: Add invitation result notification

Add a notification function for the result of an invitation.

Signed-off-by: Jean-Michel Bachot <jean-michelx.bachot@linux.intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Jean-Michel Bachot 2011-02-24 22:40:21 +02:00 committed by Jouni Malinen
parent c2641bf7cf
commit 5ccdf84f0d
3 changed files with 9 additions and 0 deletions

View file

@ -381,4 +381,10 @@ void wpas_notify_p2p_go_neg_completed(struct wpa_supplicant *wpa_s, int status)
{
}
void wpas_notify_p2p_invitation_result(struct wpa_supplicant *wpa_s,
int status, const u8 *bssid)
{
}
#endif /* CONFIG_P2P */

View file

@ -89,5 +89,7 @@ void wpas_notify_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
const u8 *src, u16 dev_passwd_id);
void wpas_notify_p2p_go_neg_completed(struct wpa_supplicant *wpa_s,
int status);
void wpas_notify_p2p_invitation_result(struct wpa_supplicant *wpa_s,
int status, const u8 *bssid);
#endif /* NOTIFY_H */

View file

@ -2073,6 +2073,7 @@ static void wpas_invitation_result(void *ctx, int status, const u8 *bssid)
wpa_msg(wpa_s, MSG_INFO, P2P_EVENT_INVITATION_RESULT
"status=%d ", status);
}
wpas_notify_p2p_invitation_result(wpa_s, status, bssid);
if (wpa_s->pending_invite_ssid_id == -1)
return; /* Invitation to active group */