From b9313e17e8ebcb8809be4f4d823ed2eb4f8b578e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 16 May 2022 19:06:47 +0300 Subject: [PATCH] tests: Update ap_wpa2_psk_ext_delayed_ptk_rekey to match implementation This test case was checking the exact key info bits in EAPOL-Key frames during PTK rekeying as such, needs to be updated to match the implementation change on the Secure bit setting. Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_psk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py index 5a86c72e7..652eae4a8 100644 --- a/tests/hwsim/test_ap_psk.py +++ b/tests/hwsim/test_ap_psk.py @@ -1318,7 +1318,7 @@ def test_ap_wpa2_psk_ext_delayed_ptk_rekey(dev, apdev): if ev is None: raise Exception("Timeout on EAPOL-TX from hostapd") keyinfo = ev.split(' ')[2][10:14] - if keyinfo != "008a": + if keyinfo != "028a": raise Exception("Unexpected key info when expected msg 1/4:" + keyinfo) # EAPOL-Key msg 4/4 from the previous 4-way handshake @@ -1334,7 +1334,7 @@ def test_ap_wpa2_psk_ext_delayed_ptk_rekey(dev, apdev): if ev is None: raise Exception("Did not see EAPOL-TX from hostapd in the end (expected msg 1/4)") keyinfo = ev.split(' ')[2][10:14] - if keyinfo != "008a": + if keyinfo != "028a": raise Exception("Unexpected key info when expected msg 1/4:" + keyinfo) def parse_eapol(data):