[PATCH 4/9] p2p: consider ht/vht on P2P_GROUP_ADD command (with no params)

Ilan Peer ilan.peer at intel.com
Wed Jun 17 09:18:16 EDT 2015


From: Eliad Peller <eliad at wizery.com>

p2p_ctrl_group_add() takes care of various configuration
options (such as ht/vht) before calling wpas_p2p_group_add(),
so use it (just like when P2P_GROUP_ADD is called with
additional params).

Signed-off-by: Eliad Peller <eliadx.peller at intel.com>
---
 wpa_supplicant/ctrl_iface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 1413b7e..563a764 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -8196,7 +8196,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
 		if (wpas_p2p_group_remove(wpa_s, buf + 17))
 			reply_len = -1;
 	} else if (os_strcmp(buf, "P2P_GROUP_ADD") == 0) {
-		if (wpas_p2p_group_add(wpa_s, 0, 0, 0, 0))
+		if (p2p_ctrl_group_add(wpa_s, ""))
 			reply_len = -1;
 	} else if (os_strncmp(buf, "P2P_GROUP_ADD ", 14) == 0) {
 		if (p2p_ctrl_group_add(wpa_s, buf + 14))
-- 
1.9.1



More information about the HostAP mailing list