If the network changes, we need to remove the vif from the old network
before we lose access to the previous state
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
}
D(WIRELESS, "Update wireless interface %s on device %s\n", vif_new->name, wdev->name);
}
D(WIRELESS, "Update wireless interface %s on device %s\n", vif_new->name, wdev->name);
+ wireless_interface_handle_link(vif_old, false);
free(vif_old->config);
vif_old->config = blob_memdup(vif_new->config);
vif_old->isolate = vif_new->isolate;
free(vif_old->config);
vif_old->config = blob_memdup(vif_new->config);
vif_old->isolate = vif_new->isolate;