3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-06 03:18:46 +02:00

test: Add scan-for-networks script

This commit is contained in:
Denis Kenzior 2015-03-26 00:18:59 -05:00
parent 4cf423b771
commit 034692b1b0

14
test/scan-for-networks Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/python
import sys
import dbus
if (len(sys.argv) != 2):
print("Usage: %s <device>" % (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()