[PATCH] P2P: Fix Ctrl interfance for parsing of command p2p_connect
nirav shah
nirav.j2.shah
Fri May 4 15:29:33 PDT 2012
The ctrl interface does not recognize the command following peer
address as it moves past a ' '(space) which it looks for later on
in os_strstr.
Signed-hostap: Nirav Shah <nirav.j2.shah at intel.com>
intended-for: hostap-1
---
wpa_supplicant/ctrl_iface.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 538f8df..00f3614 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -2800,7 +2800,6 @@ static int p2p_ctrl_connect(struct wpa_supplicant *wpa_s, char *cmd,
pos = cmd + 17;
if (*pos != ' ')
return -1;
- pos++;
persistent_group = os_strstr(pos, " persistent") != NULL;
pos2 = os_strstr(pos, " persistent=");
--
1.7.5.4
More information about the Hostap
mailing list