diff mbox

P2P: Fix Ctrl interfance for parsing of command p2p_connect

Message ID 1336170573-12732-1-git-send-email-nirav.j2.shah@intel.com
State Rejected
Headers show

Commit Message

nirav shah May 4, 2012, 10:29 p.m. UTC
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@intel.com>
intended-for: hostap-1
---
 wpa_supplicant/ctrl_iface.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
diff mbox

Patch

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=");