eiwd

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

commit 74e7e341fd61c3d5ae418d1e609b96e70d990dbe
parent 4b88607b198a8659577e6dbe9eb51e85d059dbba
Author: James Prestwood <prestwoj@gmail.com>
Date:   Tue, 19 Oct 2021 11:19:09 -0700

auto-t: hostapd.py: add chan_switch()

Forces hostapd to channel switch

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

diff --git a/autotests/util/hostapd.py b/autotests/util/hostapd.py @@ -216,6 +216,14 @@ class HostapdCLI(object): cmd = 'RESEND_M3 %s' % address self.ctrl_sock.sendall(cmd.encode('utf-8')) + def chan_switch(self, channel): + if channel > len(chan_freq_map): + raise Exception("Only 2.4GHz channels supported for chan_switch") + + cmd = self.cmdline + ['chan_switch', '50', str(chan_freq_map[channel])] + ctx.start_process(cmd).wait() + self.wait_for_event('AP-CSA-FINISHED') + @property def bssid(self): cmd = self.cmdline + ['status']