3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 02:19:26 +01:00

wiphy: Tweak errors returned by Disconnect()

This commit is contained in:
Denis Kenzior 2015-04-30 18:42:55 -05:00
parent 0286dfadd4
commit 348a90ada3

View File

@ -690,10 +690,10 @@ static struct l_dbus_message *device_disconnect(struct l_dbus *dbus,
l_debug("");
if (netdev->connect_pending)
return dbus_error_failed(message);
return dbus_error_busy(message);
if (!netdev->connected_bss)
return dbus_error_failed(message);
return dbus_error_not_connected(message);
if (netdev->connected_network->ssid_security ==
SCAN_SSID_SECURITY_PSK)