[PATCH] Disable bgscan for modes other than infrastructure

Sam Leffler sleffler
Sat Jul 30 15:19:31 PDT 2011


On Wed, Jul 27, 2011 at 11:32 PM,  <Bartosz.Markowski at tieto.com> wrote:
> 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;
>

There's no justification for this change and it is wrong to disable
bgscan for modes like ibss.

-Sam



More information about the Hostap mailing list