mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-09 05:29:23 +01:00
17 lines
336 B
Python
17 lines
336 B
Python
#!/usr/bin/python3
|
|
import os
|
|
|
|
class HostapdCLI:
|
|
|
|
@staticmethod
|
|
def wps_push_button():
|
|
os.system('hostapd_cli wps_pbc')
|
|
|
|
@staticmethod
|
|
def deauthenticate(client_address):
|
|
os.system('hostapd_cli deauthenticate ' + client_address)
|
|
|
|
@staticmethod
|
|
def kill_all():
|
|
os.system('killall hostapd')
|