mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +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:
parent
d0ee923dda
commit
5478034eb7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user