eiwd

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

commit e730baac4a6ceef50df9dde3c3195c87d568291c
parent f80189d161b2e346458cc536785d55dc05845320
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Mon, 29 Mar 2021 10:35:31 -0500

station: Make sure to reset scanning property

When we cancel a quick scan that has already been triggered, the
Scanning property is never reset to false.  This doesn't fully reflect
the actual scanning state of the hardware since we don't (yet) abort
the scan, but at least corrects the public API behavior.

{Network} [/net/connman/iwd/0/7/73706733_psk] Connected = False
{Station} [/net/connman/iwd/0/7] Scanning = True
{Station} [/net/connman/iwd/0/7] State = connecting
{Station} [/net/connman/iwd/0/7] ConnectedNetwork =
/net/connman/iwd/0/7/73706733_psk
{Network} [/net/connman/iwd/0/7/73706733_psk] Connected = True

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

diff --git a/src/station.c b/src/station.c @@ -201,6 +201,7 @@ static void station_autoconnect_next(struct station *station) scan_cancel(netdev_get_wdev_id(station->netdev), station->quick_scan_id); station->quick_scan_id = 0; + station_property_set_scanning(station, false); } return; @@ -2644,6 +2645,7 @@ void station_connect_network(struct station *station, struct network *network, scan_cancel(netdev_get_wdev_id(station->netdev), station->quick_scan_id); station->quick_scan_id = 0; + station_property_set_scanning(station, false); } if (station_is_busy(station)) {