]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Update ap_wpa2_psk_ext_delayed_ptk_rekey to match implementation
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 16 May 2022 16:06:47 +0000 (19:06 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 16 May 2022 16:06:47 +0000 (19:06 +0300)
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 <quic_jouni@quicinc.com>
tests/hwsim/test_ap_psk.py

index 5a86c72e712457abbe0f6b51f737aaafbfe38103..652eae4a8c47bb3ac094f0eea51f00f7dde92b9f 100644 (file)
@@ -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):