tests: Stop wpa_supplicant before hostapd
Stopping the AP first was not ideal for the test cases since it could result in wpa_supplicant trying to connect back and start a scan at the end of a test case and cause problems for the following test case that tried to scan in the beginning while the previously started scan was still in progress. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
3db5439a5f
commit
6b67117a34
1 changed files with 2 additions and 2 deletions
|
@ -18,10 +18,10 @@ from hostapd import HostapdGlobal
|
||||||
|
|
||||||
def reset_devs(dev, apdev):
|
def reset_devs(dev, apdev):
|
||||||
hapd = HostapdGlobal()
|
hapd = HostapdGlobal()
|
||||||
for ap in apdev:
|
|
||||||
hapd.remove(ap['ifname'])
|
|
||||||
for d in dev:
|
for d in dev:
|
||||||
d.reset()
|
d.reset()
|
||||||
|
for ap in apdev:
|
||||||
|
hapd.remove(ap['ifname'])
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
test_file = None
|
test_file = None
|
||||||
|
|
Loading…
Reference in a new issue