eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 5478034eb70040fde8110703bd076708b57fe52a
parent d0ee923dda0bc681fa0987586eef2495a502b86f
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date:   Tue, 23 Jul 2019 18:12:58 -0700

network: Check for already connected network

Check if the requested network is already connected,
if so return success.

Diffstat:
Msrc/network.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/network.c b/src/network.c @@ -1176,6 +1176,12 @@ static struct l_dbus_message *network_connect(struct l_dbus *dbus, 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 * agent this may not be the final choice because BSS visibility can