[PATCH 08/14] ctrl: Redirect global MGMT_TX and GET commands to P2P Device interface

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


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

Redirect MGMT_TX and GET commands from the global control interface to
the P2P Device interface, to support a configuration that uses a
dedicated P2P Device interface.

The redirection of MGMT_TX is needed in tests that use MGMT_TX for
P2P, e.g., in gas_max_pending().

The redirection of GET is needed in tests that try to get values
previously configured using SET, e.g.,  nfc_p2p_go_neg()

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 a32b718..351c746 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -9152,6 +9152,10 @@ static char * wpas_global_ctrl_iface_redir_p2p(struct wpa_global *global,
 		"NFC_REPORT_HANDOVER ",
 		"P2P_ASP_PROVISION ",
 		"P2P_ASP_PROVISION_RESP ",
+#ifdef CONFIG_TESTING_OPTIONS
+		"MGMT_TX ",
+		"GET ",
+#endif /* CONFIG_TESTING_OPTIONS */
 		NULL
 	};
 	int found = 0;
-- 
1.9.1




More information about the Hostap mailing list