mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-29 21:42:50 +01:00
test: Add wps-push-button script
This commit is contained in:
parent
326681933c
commit
6d11ce020a
13
test/wps-push-button
Executable file
13
test/wps-push-button
Executable 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()
|
Loading…
Reference in New Issue
Block a user