From patchwork Mon Mar 3 12:53:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilan Peer X-Patchwork-Id: 325809 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 ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 5C60F2C00D5 for ; Mon, 3 Mar 2014 23:57:55 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 73B769D2BB; Mon, 3 Mar 2014 07:57:18 -0500 (EST) 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 HrKa7xdyqSRu; Mon, 3 Mar 2014 07:57:18 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 0495C17C02A; Mon, 3 Mar 2014 07:56:21 -0500 (EST) 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 0EA0A17C02A for ; Mon, 3 Mar 2014 07:56:20 -0500 (EST) 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 4otuePV93uM5 for ; Mon, 3 Mar 2014 07:56:15 -0500 (EST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id B78F09C19E for ; Mon, 3 Mar 2014 07:56:00 -0500 (EST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 03 Mar 2014 04:55:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,577,1389772800"; d="scan'208";a="491246692" Received: from unknown (HELO ipeer-e6430-1.jer.intel.com) ([10.12.217.169]) by fmsmga002.fm.intel.com with ESMTP; 03 Mar 2014 04:55:26 -0800 From: Ilan Peer To: hostap@lists.shmoo.com Subject: [PATCH] wpa_supplicant: don't start sched scan for p2p dev interfaces Date: Mon, 3 Mar 2014 14:53:23 +0200 Message-Id: <1393851204-964-7-git-send-email-ilan.peer@intel.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1393851204-964-1-git-send-email-ilan.peer@intel.com> References: <1393851204-964-1-git-send-email-ilan.peer@intel.com> Cc: Eliad Peller X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.11 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 From: Eliad Peller wpa_supplicant started delayed sched scan also on p2p dev interfaces, resulting in erroneous scans and connection attempts. Signed-off-by: Eliad Peller --- wpa_supplicant/wpa_supplicant.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 006d6c1..78c242a 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -2671,7 +2671,8 @@ int wpa_supplicant_driver_init(struct wpa_supplicant *wpa_s) wpa_supplicant_set_state(wpa_s, WPA_DISCONNECTED); interface_count = 0; } - if (wpa_supplicant_delayed_sched_scan(wpa_s, interface_count, + if (!wpa_s->p2p_mgmt && + wpa_supplicant_delayed_sched_scan(wpa_s, interface_count, 100000)) wpa_supplicant_req_scan(wpa_s, interface_count, 100000);