[LEDE-DEV] [PATCH netifd 2/2] wireless: Call wireless_interface_handle_link before deleting the vif

Hans Dedecker dedeckeh at gmail.com
Tue Oct 25 02:08:34 PDT 2016


Similar as when updating a vif; call wireless_interface_handle_link removing the vif from
the network when deleting a vif

Signed-off-by: Hans Dedecker <dedeckeh at gmail.com>
---
 wireless.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wireless.c b/wireless.c
index 9109ce1..387f4ba 100644
--- a/wireless.c
+++ b/wireless.c
@@ -613,6 +613,7 @@ vif_update(struct vlist_tree *tree, struct vlist_node *node_new,
 		wireless_interface_init_config(vif_new);
 	} else if (vif_old) {
 		D(WIRELESS, "Delete wireless interface %s on device %s\n", vif_old->name, wdev->name);
+		wireless_interface_handle_link(vif_old, false);
 		free((void *) vif_old->section);
 		free(vif_old->config);
 		free(vif_old);
-- 
1.9.1




More information about the Lede-dev mailing list