From b54410127d97066861482c65618414e4d441022e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 6 Mar 2021 11:45:48 +0200 Subject: [PATCH] tests: hapd->tmp_eap_user clearing on interface deinit/reinit Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_eap.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index 6092b54c9..d3f140323 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -5350,6 +5350,15 @@ def test_ap_wpa2_eap_sql(dev, apdev, params): eap_connect(dev[1], hapd, "TTLS", "user-pap", anonymous_identity="ttls", password="password", ca_cert="auth_serv/ca.pem", phase2="auth=PAP") + dev[0].request("REMOVE_NETWORK all") + dev[1].request("REMOVE_NETWORK all") + dev[0].wait_disconnected() + dev[1].wait_disconnected() + hapd.disable() + hapd.enable() + eap_connect(dev[0], hapd, "TTLS", "user-mschapv2", + anonymous_identity="ttls", password="password", + ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAPV2") finally: os.remove(dbfile)