tests: Fix ERP test cases to close separate AS (ifname=as-erp)
The earlier change from using apdev[1] to using a no-interface
ifname=as-erp in the ERP related test cases ended up leaving the
separate authentication server interface running after the end of the
test case. This left UDP port 18128 open and any consecutive test case
needing this port failed to start another authentication server.
This can be reproduced with following test case sequence:
fils_auth_gtk_rekey authsrv_unknown_user
Fixes: e374def207
("tests: Start ERP authentication server without AP")
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
2d11e5d5e6
commit
f82a840878
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ def reset_devs(dev, apdev):
|
|||
hapd.remove('wlan3-2')
|
||||
for ap in apdev:
|
||||
hapd.remove(ap['ifname'])
|
||||
hapd.remove('as-erp')
|
||||
except Exception as e:
|
||||
logger.info("Failed to remove hostapd interface")
|
||||
print(str(e))
|
||||
|
|
Loading…
Reference in a new issue