Browse Source

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>
Jean-Michel Bachot 14 years ago
parent
commit
5ccdf84f0d
3 changed files with 9 additions and 0 deletions
  1. 6 0
      wpa_supplicant/notify.c
  2. 2 0
      wpa_supplicant/notify.h
  3. 1 0
      wpa_supplicant/p2p_supplicant.c

+ 6 - 0
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 */

+ 2 - 0
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 */

+ 1 - 0
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 */