From patchwork Wed Apr 4 06:39:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Bursztyka X-Patchwork-Id: 150606 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 612E0B6FC4 for ; Wed, 4 Apr 2012 16:39:08 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 181279C1CA; Wed, 4 Apr 2012 02:39:05 -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 h359Km9XeICQ; Wed, 4 Apr 2012 02:39:04 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 854819C1D1; Wed, 4 Apr 2012 02:38:37 -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 C744417C00C for ; Wed, 4 Apr 2012 02:38:35 -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 7d-ILSsqg7nM for ; Wed, 4 Apr 2012 02:38:32 -0400 (EDT) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 11F8917C003 for ; Wed, 4 Apr 2012 02:38:28 -0400 (EDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 03 Apr 2012 23:38:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,351,1309762800"; d="scan'208";a="128488019" Received: from mriya.fi.intel.com ([10.237.68.33]) by orsmga002.jf.intel.com with ESMTP; 03 Apr 2012 23:38:27 -0700 From: Tomasz Bursztyka To: hostap@lists.shmoo.com Subject: [PATCH 2/5] Removing bgscan config macros in wpa_supplicant.c Date: Wed, 4 Apr 2012 09:39:59 +0300 Message-Id: <1333521602-6216-3-git-send-email-tomasz.bursztyka@linux.intel.com> X-Mailer: git-send-email 1.7.8.5 In-Reply-To: <1333521602-6216-1-git-send-email-tomasz.bursztyka@linux.intel.com> References: <1333521602-6216-1-git-send-email-tomasz.bursztyka@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - PL 281, 00181 Helsinki 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 This will be useful to simplify autoscan support afterwards --- wpa_supplicant/wpa_supplicant.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index cddc694..ff54444 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -555,8 +555,6 @@ const char * wpa_supplicant_state_txt(enum wpa_states state) } -#ifdef CONFIG_BGSCAN - static void wpa_supplicant_start_bgscan(struct wpa_supplicant *wpa_s) { if (wpas_driver_bss_selection(wpa_s)) @@ -589,8 +587,6 @@ static void wpa_supplicant_stop_bgscan(struct wpa_supplicant *wpa_s) } } -#endif /* CONFIG_BGSCAN */ - /** * wpa_supplicant_set_state - Set current connection state @@ -642,12 +638,10 @@ void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s, } wpa_s->wpa_state = state; -#ifdef CONFIG_BGSCAN if (state == WPA_COMPLETED) wpa_supplicant_start_bgscan(wpa_s); else wpa_supplicant_stop_bgscan(wpa_s); -#endif /* CONFIG_BGSCAN */ if (wpa_s->wpa_state != old_state) { wpas_notify_state_changed(wpa_s, wpa_s->wpa_state, old_state);