diff --git a/test/scan-for-networks b/test/scan-for-networks new file mode 100755 index 00000000..05c1cdf4 --- /dev/null +++ b/test/scan-for-networks @@ -0,0 +1,14 @@ +#!/usr/bin/python + +import sys +import dbus + + +if (len(sys.argv) != 2): + print("Usage: %s " % (sys.argv[0])) + sys.exit(1) + +bus = dbus.SystemBus() +device = dbus.Interface(bus.get_object("net.connman.iwd", sys.argv[1]), + "net.connman.iwd.Device") +device.Scan()