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:
parent
734baae0af
commit
f3857c2e6a
1 changed files with 2 additions and 0 deletions
|
@ -1409,6 +1409,8 @@ static int wpa_supplicant_ctrl_iface_remove_network(
|
||||||
wpa_printf(MSG_DEBUG, "CTRL_IFACE: REMOVE_NETWORK id=%d", id);
|
wpa_printf(MSG_DEBUG, "CTRL_IFACE: REMOVE_NETWORK id=%d", id);
|
||||||
|
|
||||||
ssid = wpa_config_get_network(wpa_s->conf, id);
|
ssid = wpa_config_get_network(wpa_s->conf, id);
|
||||||
|
if (ssid)
|
||||||
|
wpas_notify_network_removed(wpa_s, ssid);
|
||||||
if (ssid == NULL ||
|
if (ssid == NULL ||
|
||||||
wpa_config_remove_network(wpa_s->conf, id) < 0) {
|
wpa_config_remove_network(wpa_s->conf, id) < 0) {
|
||||||
wpa_printf(MSG_DEBUG, "CTRL_IFACE: Could not find network "
|
wpa_printf(MSG_DEBUG, "CTRL_IFACE: Could not find network "
|
||||||
|
|
Loading…
Reference in a new issue