]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: hapd->tmp_eap_user clearing on interface deinit/reinit
authorJouni Malinen <j@w1.fi>
Sat, 6 Mar 2021 09:45:48 +0000 (11:45 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 6 Mar 2021 09:45:48 +0000 (11:45 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_eap.py

index 6092b54c9c9c9f02d635f3c02c1cfa60c17e78b7..d3f140323870ec1fdd6b3cdabf439b66f2eb6c24 100644 (file)
@@ -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)