mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 23:09:34 +01:00
test: Add scan-for-networks script
This commit is contained in:
parent
4cf423b771
commit
034692b1b0
14
test/scan-for-networks
Executable file
14
test/scan-for-networks
Executable 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()
|
Loading…
Reference in New Issue
Block a user