eiwd

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

commit 90fb7eff7dcfae661917c4c8d95ebc5010752950
parent 299337b579ab0b8e7a29c52ccb7b016b64e56c77
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu, 14 Nov 2019 10:59:59 -0800

station: fail if trying to scan while connecting

If a scan is requested during the middle of a connection we should
return busy instead of attempting the scan. The kernel ends up coming
back with not supported in this case, which is misleading and
difficult to debug.

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

diff --git a/src/station.c b/src/station.c @@ -2751,6 +2751,9 @@ static struct l_dbus_message *station_dbus_scan(struct l_dbus *dbus, if (station->dbus_scan_id) return dbus_error_busy(message); + if (station->state == STATION_STATE_CONNECTING) + return dbus_error_busy(message); + station->dbus_scan_id = station_scan_trigger(station, NULL, station_dbus_scan_triggered, new_scan_results,