eiwd

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

commit d51c3db4ce66991184414f1064c81f5df0861630
parent a2354f88a6798a86676a6d62549dc86a44142b3f
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Mon, 28 Jan 2019 15:52:02 -0600

station: Simplify logic

Diffstat:
Msrc/station.c | 10+++-------
1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/station.c b/src/station.c @@ -1821,20 +1821,16 @@ static void station_disconnect_reconnect_cb(struct netdev *netdev, bool success, { struct station *station = user_data; struct handshake_state *hs; - int r; hs = station_handshake_setup(station, station->connected_network, station->connected_bss); if (!hs) goto error; - r = netdev_connect(station->netdev, station->connected_bss, hs, + if (netdev_connect(station->netdev, station->connected_bss, hs, station_netdev_event, station_connect_cb, - station); - if (r < 0) - goto error; - - return; + station) > 0) + return; error: station_disconnect(station);