]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: WPA2-PSK from RADIUS during 4-way handshake with Session-Timeout
authorJouni Malinen <j@w1.fi>
Sun, 21 Apr 2024 08:35:25 +0000 (11:35 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 21 Apr 2024 08:55:53 +0000 (11:55 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_radius.py

index 4ecb6599bf7abd021a69e99cc692db8cce010c9e..a98a75a5e8a12aa5c3a730ef90b5f5fcfa3a15c1 100644 (file)
@@ -1302,7 +1302,15 @@ def test_radius_psk(dev, apdev):
 
 def test_radius_psk_during_4way_hs(dev, apdev):
     """WPA2 with PSK from RADIUS during 4-way handshake"""
-    t, t_events = start_radius_psk_server("12345678")
+    run_radius_psk_during_4way_hs(dev, apdev, 0)
+
+def test_radius_psk_during_4way_hs_session_timeout(dev, apdev):
+    """WPA2 with PSK from RADIUS during 4-way handshake with Session-Timeout"""
+    run_radius_psk_during_4way_hs(dev, apdev, 10000)
+
+def run_radius_psk_during_4way_hs(dev, apdev, session_timeout):
+    t, t_events = start_radius_psk_server("12345678",
+                                          session_timeout=session_timeout)
 
     try:
         params = hostapd_radius_psk_test_params()