mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
station: remove diagnostic interface on station_free
If station gets removed ungracefully (e.g. rfkill/hotplug) it may not have a chance to disconnect, meaning the diagnostic interface would remain up.
This commit is contained in:
parent
3b3f6d33fe
commit
0531e9ab08
@ -3496,6 +3496,10 @@ static void station_free(struct station *station)
|
|||||||
if (station->connected_bss)
|
if (station->connected_bss)
|
||||||
netdev_disconnect(station->netdev, NULL, NULL);
|
netdev_disconnect(station->netdev, NULL, NULL);
|
||||||
|
|
||||||
|
l_dbus_object_remove_interface(dbus_get_bus(),
|
||||||
|
netdev_get_path(station->netdev),
|
||||||
|
IWD_STATION_DIAGNOSTIC_INTERFACE);
|
||||||
|
|
||||||
if (station->netconfig) {
|
if (station->netconfig) {
|
||||||
netconfig_destroy(station->netconfig);
|
netconfig_destroy(station->netconfig);
|
||||||
station->netconfig = NULL;
|
station->netconfig = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user