From patchwork Fri May 4 22:29:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: nirav shah X-Patchwork-Id: 157005 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id B06FBB6FAC for ; Sat, 5 May 2012 08:31:33 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 02E8D9D27E; Fri, 4 May 2012 18:31:30 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QyMPsaFZfAa2; Fri, 4 May 2012 18:31:29 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 01F959D280; Fri, 4 May 2012 18:31:26 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id AF75B9C1EE for ; Fri, 4 May 2012 18:31:24 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T0c88r2WHlxq for ; Fri, 4 May 2012 18:31:19 -0400 (EDT) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 944E29C1ED for ; Fri, 4 May 2012 18:31:19 -0400 (EDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 04 May 2012 15:31:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="162146345" Received: from nirav-z68a-d3h-b3.hf.intel.com ([10.10.69.89]) by fmsmga002.fm.intel.com with ESMTP; 04 May 2012 15:31:18 -0700 From: nirav shah To: hostap@lists.shmoo.com Subject: [PATCH] P2P: Fix Ctrl interfance for parsing of command p2p_connect Date: Fri, 4 May 2012 15:29:33 -0700 Message-Id: <1336170573-12732-1-git-send-email-nirav.j2.shah@intel.com> X-Mailer: git-send-email 1.7.5.4 X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com 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 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=");