diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2016-10-25 11:08:34 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-11-04 13:24:02 +0100 |
commit | bf4cfc851d422c742e7c38bd552b792194655a7e (patch) | |
tree | 1e2bed8a14d4b39935ca6e4d756e8e097e3c2ada | |
parent | c66b0fe37d20fa10777aef6f3580af15f5edd07e (diff) |
wireless: Call wireless_interface_handle_link before deleting the vif
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@gmail.com>
-rw-r--r-- | wireless.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |