tests: remote: Kill correct hostapd/wpa_supplicant process
Kill hostapd and wpa_supplicant based on the configuration parameters. Previously, we could have killed wrong processes. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
This commit is contained in:
parent
ec5de19549
commit
0de85869a8
3 changed files with 12 additions and 6 deletions
|
@ -138,6 +138,12 @@ def run_wpasupplicant(host, setup_params):
|
|||
if status != 0:
|
||||
raise Exception("Could not run wpa_supplicant: " + buf)
|
||||
|
||||
def kill_wpasupplicant(host, setup_params):
|
||||
host.execute(['killall', setup_params['wpa_supplicant']])
|
||||
|
||||
def kill_hostapd(host, setup_params):
|
||||
host.execute(['killall', setup_params['hostapd']])
|
||||
|
||||
def get_ap_params(channel="1", bw="HT20", country="US", security="open", ht_capab=None, vht_capab=None):
|
||||
ssid = "test_" + channel + "_" + security + "_" + bw
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue