mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-03-30 22:46:47 +02:00
wiphy: Tweak errors returned by Disconnect()
This commit is contained in:
parent
0286dfadd4
commit
348a90ada3
@ -690,10 +690,10 @@ static struct l_dbus_message *device_disconnect(struct l_dbus *dbus,
|
|||||||
l_debug("");
|
l_debug("");
|
||||||
|
|
||||||
if (netdev->connect_pending)
|
if (netdev->connect_pending)
|
||||||
return dbus_error_failed(message);
|
return dbus_error_busy(message);
|
||||||
|
|
||||||
if (!netdev->connected_bss)
|
if (!netdev->connected_bss)
|
||||||
return dbus_error_failed(message);
|
return dbus_error_not_connected(message);
|
||||||
|
|
||||||
if (netdev->connected_network->ssid_security ==
|
if (netdev->connected_network->ssid_security ==
|
||||||
SCAN_SSID_SECURITY_PSK)
|
SCAN_SSID_SECURITY_PSK)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user