mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
tests: Pass apdev to hostapd.terminate()
Pass apdev dictionary to hostapd.terminate() to support operation with a remote test host. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
This commit is contained in:
parent
c92ee957ca
commit
369f712a40
@ -422,8 +422,15 @@ def remove_bss(apdev, ifname=None):
|
||||
hapd_global = HostapdGlobal(hostname=hostname, port=port)
|
||||
hapd_global.remove(ifname)
|
||||
|
||||
def terminate(hostname=None, port=8878):
|
||||
logger.info("Terminating hostapd")
|
||||
def terminate(apdev):
|
||||
try:
|
||||
hostname = apdev['hostname']
|
||||
port = apdev['port']
|
||||
logger.info("Terminating hostapd " + apdev['hostname'] + "/" + apdev['port'])
|
||||
except:
|
||||
hostname = None
|
||||
port = 8878
|
||||
logger.info("Terminating hostapd")
|
||||
hapd_global = HostapdGlobal(hostname=hostname, port=port)
|
||||
hapd_global.terminate()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user