]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Test GTK rekey in test_eht_mld_link_removal()
authorIlan Peer <ilan.peer@intel.com>
Tue, 21 Nov 2023 15:23:59 +0000 (17:23 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 26 Nov 2023 15:01:30 +0000 (17:01 +0200)
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
tests/hwsim/test_eht.py

index b7441d6eaea35fbdeb5ef743a0f19306338abf53..4cf3b6a3a9e798f83fc38d1f113f8210b059741d 100644 (file)
@@ -656,6 +656,15 @@ def test_eht_mld_link_removal(dev, apdev):
         logger.info("Test traffic after 2nd link disabled")
         traffic_test(wpas, hapd0)
 
+        if "OK" not in hapd0.request("REKEY_GTK"):
+            raise Exception("REKEY_GTK failed")
+
+        ev = wpas.wait_event(["MLO RSN: Group rekeying completed"], timeout=2)
+        if ev is None:
+            raise Exception("GTK rekey timed out")
+
+        traffic_test(wpas, hapd0)
+
         logger.info("Disable the 1st link in 20 beacon intervals")
         hapd0.link_remove(20)
         time.sleep(1)