eiwd

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

commit 82161909a1bb74c07d78eecc11dc0972efbe3cff
parent c2ef5f3f6843a58517cb581c87dbbfa7e9c31939
Author: James Prestwood <prestwoj@gmail.com>
Date:   Tue, 27 Feb 2024 10:34:02 -0800

auto-t: add HostapdCLI.sta_status

Gets information about a specific STA hostapd is tracking. This
object will contain detailed information such as the SAE group
number used.

Diffstat:
Mautotests/util/hostapd.py | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/autotests/util/hostapd.py b/autotests/util/hostapd.py @@ -306,6 +306,22 @@ class HostapdCLI(object): return ret + def sta_status(self, address): + ret = {} + + cmd = self.cmdline + ['sta', address] + proc = ctx.start_process(cmd) + proc.wait() + status = proc.out.strip().split('\n') + + # Pop address + status.pop(0) + for kv in status: + k, v = kv.split('=', 1) + ret[k] = v + + return ret + @property def bssid(self): return self._get_status()['bssid[0]']