3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-20 10:52:33 +01:00

test: Add wps-push-button script

This commit is contained in:
Denis Kenzior 2016-09-21 16:30:13 -05:00
parent 326681933c
commit 6d11ce020a

13
test/wps-push-button Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/python3
import sys
import dbus
if (len(sys.argv) != 2):
print("Usage: %s <device>" % (sys.argv[0]))
sys.exit(1)
bus = dbus.SystemBus()
wsc = dbus.Interface(bus.get_object("net.connman.iwd", sys.argv[1]),
"net.connman.iwd.WiFiSimpleConfiguration")
wsc.PushButton()