[PATCH] wpa_supplicant: abort scan after removing all networks

Jouni Malinen j
Sun Oct 28 11:58:59 PDT 2012


On Fri, Oct 26, 2012 at 03:15:37AM +0000, Spinadel, David wrote:
> Subject: [PATCH] wpa_supplicant: abort scan after removing all networks

This one is also whitespace damaged.. Could you please explain why this
change is needed? wpa_supplicant stops scanning if there are no enabled
networks.

> diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c
> @@ -1538,6 +1543,9 @@ static void remove_network(void *arg, struct wpa_ssid *ssid)
> 
>         wpas_notify_network_removed(wpa_s, ssid);
> 
> +       wpa_supplicant_cancel_sched_scan(wpa_s);
> +       wpa_supplicant_cancel_scan(wpa_s);
> +
>         if (wpa_config_remove_network(wpa_s->conf, ssid->id) < 0) {

Is this correct? This is removing just one network and there could be
other enabled networks that are being scanned.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list