]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Add invitation result notification
authorJean-Michel Bachot <jean-michelx.bachot@linux.intel.com>
Thu, 24 Feb 2011 20:40:21 +0000 (22:40 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 24 Feb 2011 20:40:21 +0000 (22:40 +0200)
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>
wpa_supplicant/notify.c
wpa_supplicant/notify.h
wpa_supplicant/p2p_supplicant.c

index 79f50c70fcedf0ce006d2c05d7d35eba59794b21..ef77fc5983daac74527130da02b2be68a344dca9 100644 (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 */
index 3a544c5e850b463df82e5e24ef3573ef54318d34..0bdc926085b2442528bb0e5839ef74cf6c10e054 100644 (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 */
index 36d30fa0c5cc94c5adad47302338534e49b5f070..ec3a8e3c2b113ce66f2e2343eb12f3d75dd591ff 100644 (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 */