eiwd

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

commit 1f9d9e1eb1b15b14839c90bb15ba23df183475be
parent 8bc871ba624bf917c8e8193e3cec69754f2074e7
Author: James Prestwood <prestwoj@gmail.com>
Date:   Wed, 26 Oct 2022 11:56:54 -0700

auto-t: allow printing devices in AP mode

The __str__ function assumed station mode which throws an exception
if the device is in AP mode. Fix this as well as print out the mode
the device is in.

Diffstat:
Mautotests/util/iwd.py | 13++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py @@ -690,14 +690,17 @@ class Device(IWDDBusAbstract): return self._device_provisioning.stop() def __str__(self, prefix = ''): - return prefix + 'Device: ' + self.device_path + '\n'\ + s = prefix + 'Device: ' + self.device_path + '\n'\ + prefix + '\tName:\t\t' + self.name + '\n'\ - + prefix + '\tAddress:\t' + self.address + '\n'\ - + prefix + '\tState:\t\t' + str(self.state) + '\n'\ + + prefix + '\tAddress:\t' + self.address + '\n' \ + prefix + '\tPowered:\t' + str(self.powered) + '\n'\ - + prefix + '\tConnected net:\t' + str(self.connected_network) +\ - '\n' + + prefix + '\tMode:\t\t' + self._properties['Mode'] + '\n' + if self._properties['Mode'] == 'station': + s += prefix + '\tState:\t\t' + str(self.state) + '\n'\ + + prefix + '\tConnected net:\t' + str(self.connected_network) + '\n' + + return s class Network(IWDDBusAbstract): '''Class represents a network object: net.connman.iwd.Network'''