eiwd

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

commit d03ea531ded4ecbf59f3ed9a48d525cdae4e1e4f
parent e1b3e73c2b3b8864e8a4288a5a0d95b990a2321f
Author: James Prestwood <prestwoj@gmail.com>
Date:   Mon,  2 Nov 2020 10:28:51 -0800

auto-t: add support for AP StartWithConfig API

If a psk is not provided to start_ap, it is assumed that the
AP is being started with a config file.

Diffstat:
Mautotests/util/iwd.py | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py @@ -467,7 +467,7 @@ class Device(IWDDBusAbstract): error_handler=self._failure) self._wait_for_async_op() - def start_ap(self, ssid, psk): + def start_ap(self, ssid, psk=None): try: self._prop_proxy.Set(IWD_DEVICE_INTERFACE, 'Mode', 'ap') except Exception as e: @@ -476,8 +476,12 @@ class Device(IWDDBusAbstract): self._ap_iface = dbus.Interface(self._bus.get_object(IWD_SERVICE, self.device_path), IWD_AP_INTERFACE) - self._ap_iface.Start(ssid, psk, reply_handler=self._success, - error_handler=self._failure) + if psk: + self._ap_iface.Start(ssid, psk, reply_handler=self._success, + error_handler=self._failure) + else: + self._ap_iface.StartProfile(ssid, reply_handler=self._success, + error_handler=self._failure) self._wait_for_async_op() def stop_ap(self):