aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJayant Sane <jayant.sane@intel.com>2011-02-24 20:34:52 (GMT)
committerJouni Malinen <j@w1.fi>2011-02-24 20:34:52 (GMT)
commitc2641bf7cf34d005e811340853f391c7f012128d (patch)
tree6b9a7763be0fca24c9d29542ac228581abe5d295 /wpa_supplicant
parent32d1bce0c0c4e90ecae5c5876c6013d4f70de02c (diff)
downloadhostap-c2641bf7cf34d005e811340853f391c7f012128d.zip
hostap-c2641bf7cf34d005e811340853f391c7f012128d.tar.gz
hostap-c2641bf7cf34d005e811340853f391c7f012128d.tar.bz2
P2P: Add GO negotiation status notification
Signed-off-by: Jayant Sane <jayant.sane@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/notify.c5
-rw-r--r--wpa_supplicant/notify.h2
-rw-r--r--wpa_supplicant/p2p_supplicant.c2
3 files changed, 9 insertions, 0 deletions
diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c
index e2ba7db..79f50c7 100644
--- a/wpa_supplicant/notify.c
+++ b/wpa_supplicant/notify.c
@@ -376,4 +376,9 @@ void wpas_notify_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
{
}
+
+void wpas_notify_p2p_go_neg_completed(struct wpa_supplicant *wpa_s, int status)
+{
+}
+
#endif /* CONFIG_P2P */
diff --git a/wpa_supplicant/notify.h b/wpa_supplicant/notify.h
index 0495880..3a544c5 100644
--- a/wpa_supplicant/notify.h
+++ b/wpa_supplicant/notify.h
@@ -87,5 +87,7 @@ void wpas_notify_p2p_group_removed(struct wpa_supplicant *wpa_s,
const char *role);
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);
#endif /* NOTIFY_H */
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 1b33ad6..36d30fa 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -1080,11 +1080,13 @@ void wpas_go_neg_completed(void *ctx, struct p2p_go_neg_results *res)
if (res->status) {
wpa_msg(wpa_s, MSG_INFO, P2P_EVENT_GO_NEG_FAILURE "status=%d",
res->status);
+ wpas_notify_p2p_go_neg_completed(wpa_s, res->status);
wpas_p2p_remove_pending_group_interface(wpa_s);
return;
}
wpa_msg(wpa_s, MSG_INFO, P2P_EVENT_GO_NEG_SUCCESS);
+ wpas_notify_p2p_go_neg_completed(wpa_s, P2P_SC_SUCCESS);
if (wpa_s->create_p2p_iface) {
struct wpa_supplicant *group_wpa_s =