Call wpas_notify_network_removed() on REMOVE_NETWORK
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 7 Sep 2011 14:44:00 +0000 (17:44 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 7 Sep 2011 14:44:00 +0000 (17:44 +0300)
This was done for the case where all networks are being removed,
but the case where a single network is removed was forgotten.

wpa_supplicant/ctrl_iface.c

index 2b0b081..22c31fd 100644 (file)
@@ -1409,6 +1409,8 @@ static int wpa_supplicant_ctrl_iface_remove_network(
        wpa_printf(MSG_DEBUG, "CTRL_IFACE: REMOVE_NETWORK id=%d", id);
 
        ssid = wpa_config_get_network(wpa_s->conf, id);
+       if (ssid)
+               wpas_notify_network_removed(wpa_s, ssid);
        if (ssid == NULL ||
            wpa_config_remove_network(wpa_s->conf, id) < 0) {
                wpa_printf(MSG_DEBUG, "CTRL_IFACE: Could not find network "