aboutsummaryrefslogtreecommitdiffstats
path: root/src
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 /src
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 'src')
-rw-r--r--src/p2p/p2p.c2
-rw-r--r--src/p2p/p2p.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c
index 79059ad..2b0c486 100644
--- a/src/p2p/p2p.c
+++ b/src/p2p/p2p.c
@@ -3032,7 +3032,7 @@ int p2p_reject(struct p2p_data *p2p, const u8 *peer_addr)
}
-static const char * p2p_wps_method_text(enum p2p_wps_method method)
+const char * p2p_wps_method_text(enum p2p_wps_method method)
{
switch (method) {
case WPS_NOT_READY:
diff --git a/src/p2p/p2p.h b/src/p2p/p2p.h
index 1159121..0b24f7f 100644
--- a/src/p2p/p2p.h
+++ b/src/p2p/p2p.h
@@ -1574,4 +1574,6 @@ int p2p_in_progress(struct p2p_data *p2p);
*/
int p2p_other_scan_completed(struct p2p_data *p2p);
+const char * p2p_wps_method_text(enum p2p_wps_method method);
+
#endif /* P2P_H */