From 50526415cb8eefa420cb875ab1f38a85929564da Mon Sep 17 00:00:00 2001 From: Ilan Peer Date: Tue, 21 Nov 2023 17:23:59 +0200 Subject: [PATCH] tests: Test GTK rekey in test_eht_mld_link_removal() Signed-off-by: Ilan Peer --- tests/hwsim/test_eht.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/hwsim/test_eht.py b/tests/hwsim/test_eht.py index b7441d6ea..4cf3b6a3a 100644 --- a/tests/hwsim/test_eht.py +++ b/tests/hwsim/test_eht.py @@ -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)