From 5ccdf84f0d96c00a0277f16a26c83fc670809dfa Mon Sep 17 00:00:00 2001 From: Jean-Michel Bachot Date: Thu, 24 Feb 2011 22:40:21 +0200 Subject: [PATCH] P2P: Add invitation result notification Add a notification function for the result of an invitation. Signed-off-by: Jean-Michel Bachot Signed-off-by: Johannes Berg --- wpa_supplicant/notify.c | 6 ++++++ wpa_supplicant/notify.h | 2 ++ wpa_supplicant/p2p_supplicant.c | 1 + 3 files changed, 9 insertions(+) diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c index 79f50c70f..ef77fc598 100644 --- a/wpa_supplicant/notify.c +++ b/wpa_supplicant/notify.c @@ -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 */ diff --git a/wpa_supplicant/notify.h b/wpa_supplicant/notify.h index 3a544c5e8..0bdc92608 100644 --- a/wpa_supplicant/notify.h +++ b/wpa_supplicant/notify.h @@ -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 */ diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 36d30fa0c..ec3a8e3c2 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -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 */