Call wpas_notify_network_removed() on REMOVE_NETWORK

This was done for the case where all networks are being removed,
but the case where a single network is removed was forgotten.
This commit is contained in:
Jouni Malinen 2011-09-07 17:44:00 +03:00 committed by Jouni Malinen
parent 734baae0af
commit f3857c2e6a

View 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 "