From: Jouni Malinen Date: Mon, 16 May 2022 16:06:47 +0000 (+0300) Subject: tests: Update ap_wpa2_psk_ext_delayed_ptk_rekey to match implementation X-Git-Tag: hostap_2_11~1906 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9313e17e8ebcb8809be4f4d823ed2eb4f8b578e;p=thirdparty%2Fhostap.git 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 --- 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):