Browse Source

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.
Jouni Malinen 13 years ago
parent
commit
f3857c2e6a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      wpa_supplicant/ctrl_iface.c

+ 2 - 0
wpa_supplicant/ctrl_iface.c

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