[PATCH 13/14] ctrl: Enable adding profiles for P2P device interface

Ilan Peer ilan.peer
Wed Oct 14 08:43:19 PDT 2015


From: Avraham Stern <avraham.stern at intel.com>

Redirect the commands ADD_NETWORK and SET_NETWORK from the global
control interface to the P2P Device interface to enable adding
netwrok profiles to the P2P Device interface.

This can be used to add persistent groups that will be used later
by the P2P Device to re-invoke the persistent group.

These commands are enabled on the global control interface only when
TESTING_OPTIONS is configured.

Signed-off-by: Avraham Stern <avraham.stern at intel.com>
---
 wpa_supplicant/ctrl_iface.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 95c572f..9f2a459 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -9117,6 +9117,9 @@ static char * wpas_global_ctrl_iface_redir_p2p(struct wpa_global *global,
 		"P2P_CANCEL",
 		"P2P_PRESENCE_REQ",
 		"P2P_EXT_LISTEN",
+#ifdef CONFIG_TESTING_OPTIONS
+		"ADD_NETWORK",
+#endif /* CONFIG_TESTING_OPTIONS */
 		NULL
 	};
 	static const char * prefix[] = {
@@ -9156,6 +9159,7 @@ static char * wpas_global_ctrl_iface_redir_p2p(struct wpa_global *global,
 #ifdef CONFIG_TESTING_OPTIONS
 		"MGMT_TX ",
 		"GET ",
+		"SET_NETWORK ",
 #endif /* CONFIG_TESTING_OPTIONS */
 		NULL
 	};
-- 
1.9.1




More information about the Hostap mailing list