aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/notify.c
diff options
context:
space:
mode:
authorReinette Chatre <reinette.chatre@intel.com>2011-12-18 14:52:33 (GMT)
committerJouni Malinen <j@w1.fi>2011-12-18 14:52:33 (GMT)
commite5a359cf7e2c65d5527c6d2c704183c773fb0ab9 (patch)
tree249ca94e19c3989675a863cb63f68ef00b0701c7 /wpa_supplicant/notify.c
parent2f0c8936bfe1d08568ef860a81bfc4c5f3bcc51d (diff)
downloadhostap-e5a359cf7e2c65d5527c6d2c704183c773fb0ab9.zip
hostap-e5a359cf7e2c65d5527c6d2c704183c773fb0ab9.tar.gz
hostap-e5a359cf7e2c65d5527c6d2c704183c773fb0ab9.tar.bz2
P2P: Make GO negotiation peer and group information available over D-Bus
The GO negotiation response is very cryptic at the moment. For a success message we only know on which interface the negotiation succeeded, not which peer. For a failure we know the interface also and a status code (number). It will be very useful for clients to know upon receipt of such a message which peer the negotiation occurred with. Now that the peer information is available and the API is changed already, the function composing the D-Bus message might as well include all GO negotiation information. This is done with a dict to make things easier on clients if this result information changes down the line. Signed-hostap: Reinette Chatre <reinette.chatre@intel.com> Signed-hostap: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'wpa_supplicant/notify.c')
-rw-r--r--wpa_supplicant/notify.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c
index 196ae8f..71778ae 100644
--- a/wpa_supplicant/notify.c
+++ b/wpa_supplicant/notify.c
@@ -446,9 +446,10 @@ 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)
+void wpas_notify_p2p_go_neg_completed(struct wpa_supplicant *wpa_s,
+ struct p2p_go_neg_results *res)
{
- wpas_dbus_signal_p2p_go_neg_resp(wpa_s, status);
+ wpas_dbus_signal_p2p_go_neg_resp(wpa_s, res);
}