3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 05:39:24 +01:00

network: Check for already connected network

Check if the requested network is already connected,
if so return success.
This commit is contained in:
Tim Kourt 2019-07-23 18:12:58 -07:00 committed by Denis Kenzior
parent d0ee923dda
commit 5478034eb7

View File

@ -1176,6 +1176,12 @@ static struct l_dbus_message *network_connect(struct l_dbus *dbus,
l_debug(""); l_debug("");
if (network == station_get_connected_network(station))
/*
* The requested network is already connected, return success.
*/
return l_dbus_message_new_method_return(message);
/* /*
* Select the best BSS to use at this time. If we have to query the * Select the best BSS to use at this time. If we have to query the
* agent this may not be the final choice because BSS visibility can * agent this may not be the final choice because BSS visibility can