mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-23 06:02:37 +01:00
netdev: Always cleanup disconnect_cmd_id
This commit is contained in:
parent
f6f5570bc8
commit
11f42e2476
13
src/netdev.c
13
src/netdev.c
@ -815,7 +815,8 @@ static void netdev_free(void *data)
|
||||
|
||||
if (netdev->connected)
|
||||
netdev_connect_free(netdev);
|
||||
else if (netdev->disconnect_cmd_id) {
|
||||
|
||||
if (netdev->disconnect_cmd_id) {
|
||||
l_genl_family_cancel(nl80211, netdev->disconnect_cmd_id);
|
||||
netdev->disconnect_cmd_id = 0;
|
||||
|
||||
@ -826,6 +827,11 @@ static void netdev_free(void *data)
|
||||
netdev->user_data = NULL;
|
||||
}
|
||||
|
||||
if (netdev->disconnect_idle) {
|
||||
l_idle_remove(netdev->disconnect_idle);
|
||||
netdev->disconnect_idle = NULL;
|
||||
}
|
||||
|
||||
if (netdev->join_adhoc_cmd_id) {
|
||||
l_genl_family_cancel(nl80211, netdev->join_adhoc_cmd_id);
|
||||
netdev->join_adhoc_cmd_id = 0;
|
||||
@ -864,11 +870,6 @@ static void netdev_free(void *data)
|
||||
if (netdev->fw_roam_bss)
|
||||
scan_bss_free(netdev->fw_roam_bss);
|
||||
|
||||
if (netdev->disconnect_idle) {
|
||||
l_idle_remove(netdev->disconnect_idle);
|
||||
netdev->disconnect_idle = NULL;
|
||||
}
|
||||
|
||||
if (netdev->ft_ds_list) {
|
||||
l_queue_destroy(netdev->ft_ds_list, netdev_ft_ds_entry_free);
|
||||
netdev->ft_ds_list = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user