mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 22:19:23 +01:00
netdev: Return -EINPROGRESS if already disconnecting
This commit is contained in:
parent
47fa0435ba
commit
1585ccc897
@ -1202,6 +1202,9 @@ int netdev_disconnect(struct netdev *netdev,
|
|||||||
if (!netdev->connected)
|
if (!netdev->connected)
|
||||||
return -ENOTCONN;
|
return -ENOTCONN;
|
||||||
|
|
||||||
|
if (netdev->disconnect_cmd_id)
|
||||||
|
return -EINPROGRESS;
|
||||||
|
|
||||||
netdev->result = NETDEV_RESULT_ABORTED;
|
netdev->result = NETDEV_RESULT_ABORTED;
|
||||||
netdev_connect_failed(NULL, netdev);
|
netdev_connect_failed(NULL, netdev);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user