Patchwork [2/5] Removing bgscan config macros in wpa_supplicant.c

login
register
mail settings
Submitter Tomasz Bursztyka
Date April 4, 2012, 7:40 a.m.
Message ID <1333525229-9068-3-git-send-email-tomasz.bursztyka@linux.intel.com>
Download mbox | patch
Permalink /patch/150618/
State Superseded
Headers show

Comments

Tomasz Bursztyka - April 4, 2012, 7:40 a.m.
This will be useful to simplify autoscan support afterwards

Signed-hostap: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
---
 wpa_supplicant/wpa_supplicant.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

Patch

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