]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: PASN with pasn_noauth=0
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 25 May 2023 19:59:00 +0000 (22:59 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 25 May 2023 19:59:00 +0000 (22:59 +0300)
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_pasn.py

index a34e47ad1bea1a75b0a1475307d1e53890f4a6ef..427e51474373cbd15e40c6b5e48c6f20a15e38dc 100644 (file)
@@ -999,3 +999,13 @@ def test_pasn_owe_tm_kdk_secure_ltf(dev, apdev):
     wpas.request("RECONNECT")
     wpas.wait_connected()
     check_pasn_ptk(wpas, hapd, "CCMP", clear_keys=False, require_kdk=True)
+
+def test_pasn_noauth_0(dev, apdev):
+    """PASN without mutual authentication disabled on the AP"""
+    check_pasn_capab(dev[0])
+
+    params = pasn_ap_params("PASN", "CCMP", "19")
+    params["pasn_noauth"] = "0"
+    hapd = start_pasn_ap(apdev[0], params)
+
+    check_pasn_akmp_cipher(dev[0], hapd, "PASN", "CCMP", status=1)