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

Tomasz Bursztyka tomasz.bursztyka
Tue Apr 3 23:39:59 PDT 2012


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




More information about the Hostap mailing list