mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 23:09:34 +01:00
netdev: Call netdev_free in netdev_shutdown
This is to make sure device_remove and netdev_connect_free are called early so we don't continue setting up a connection and don't let DBus clients power device back up after we've called netdev_set_powered.
This commit is contained in:
parent
b601c99123
commit
11d322aad7
@ -1700,9 +1700,6 @@ bool netdev_exit(void)
|
||||
|
||||
nl80211 = NULL;
|
||||
|
||||
l_queue_destroy(netdev_list, netdev_free);
|
||||
netdev_list = NULL;
|
||||
|
||||
l_debug("Closing route netlink socket");
|
||||
l_netlink_destroy(rtnl);
|
||||
rtnl = NULL;
|
||||
@ -1716,4 +1713,7 @@ void netdev_shutdown(void)
|
||||
return;
|
||||
|
||||
l_queue_foreach(netdev_list, netdev_shutdown_one, NULL);
|
||||
|
||||
l_queue_destroy(netdev_list, netdev_free);
|
||||
netdev_list = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user