mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-15 00:19:22 +01:00
auto-t: Add additional utilities for WPS PIN support
This commit is contained in:
parent
3ca1aeb917
commit
332d4f8e61
@ -44,6 +44,9 @@ class HostapdCLI:
|
||||
def wps_push_button(self):
|
||||
os.system(self.cmdline + ' wps_pbc')
|
||||
|
||||
def wps_pin(self, pin):
|
||||
os.system(self.cmdline + ' wps_pin any ' + pin)
|
||||
|
||||
def deauthenticate(self, client_address):
|
||||
os.system(self.cmdline + ' deauthenticate ' + client_address)
|
||||
|
||||
|
@ -380,6 +380,13 @@ class Device(IWDDBusAbstract):
|
||||
error_handler=self._failure)
|
||||
self._wait_for_async_op()
|
||||
|
||||
def wps_generate_pin(self):
|
||||
return self._wps_manager.GeneratePin()
|
||||
|
||||
def wps_start_pin(self, pin):
|
||||
self._wps_manager.StartPin(pin, reply_handler=self._success,
|
||||
error_handler=self._failure)
|
||||
|
||||
def wps_cancel(self):
|
||||
self._wps_manager.Cancel(dbus_interface=IWD_WSC_INTERFACE,
|
||||
reply_handler=self._success,
|
||||
|
Loading…
Reference in New Issue
Block a user