eiwd

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

commit f3d662db74e141ec2c6cf0b7a3f48da46a0a736a
parent 694ccf62d040e6256cca477d669f663283d09c70
Author: James Prestwood <prestwoj@gmail.com>
Date:   Wed,  5 May 2021 11:23:55 -0700

test: add test utility for Roam() method

Diffstat:
Atest/force-roam | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/test/force-roam b/test/force-roam @@ -0,0 +1,16 @@ +#!/usr/bin/python3 + +import sys +import dbus + +if (len(sys.argv) != 3): + print("Usage: %s <device> <mac>" % (sys.argv[0])) + sys.exit(1) + +bus = dbus.SystemBus() +device = dbus.Interface(bus.get_object("net.connman.iwd", sys.argv[1]), + "net.connman.iwd.StationDiagnostic") + +mac = sys.argv[2].replace(':', '') + +device.Roam(dbus.ByteArray.fromhex(mac))