[PATCH] Disable bgscan for modes other than infrastructure

Bartosz.Markowski at tieto.com Bartosz.Markowski
Wed Jul 27 23:32:38 PDT 2011


Signed-off-by: Bartosz Markowski <bartosz.markowski at tieto.com>
---
 wpa_supplicant/wpa_supplicant.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 3f3e435..7a11b21 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -527,6 +527,9 @@ const char * wpa_supplicant_state_txt(enum wpa_states state)

 static void wpa_supplicant_start_bgscan(struct wpa_supplicant *wpa_s)
 {
+       if (wpa_s->current_ssid->mode)
+               return;
+
        if (wpa_s->current_ssid == wpa_s->bgscan_ssid)
                return;

--

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20110728/ea6b96ee/attachment.htm 



More information about the Hostap mailing list