]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Reset the correct key's PN for group key handshake testing
authorJohannes Berg <johannes.berg@intel.com>
Thu, 7 May 2020 08:26:50 +0000 (10:26 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 16 May 2020 22:31:19 +0000 (01:31 +0300)
While adding support for IGTK and BIGTK here, I tested this without
protections (i.e., with protections removed from both wpa_supplicant and
the driver), and while I got some bad resets on the debugfs values, it
should have failed with "unexpected connectivity".

Fix this to be correct - we need to reset the GTK PN, not the PTK PN in
this test.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
tests/hwsim/test_ap_ciphers.py

index 482fba18f1d16c9dbcfbdfe93e25f4af381ce72a..352830a04e7418df1a956128dc6fa7d5671946f1 100644 (file)
@@ -853,7 +853,7 @@ def run_ap_wpa2_delayed_group_m1_retransmission(dev, apdev):
     time.sleep(0.1)
     after = get_rx_spec(phy, keytype=KT_GTK).splitlines()
 
-    if "OK" not in hapd.request("RESET_PN " + addr):
+    if "OK" not in hapd.request("RESET_PN ff:ff:ff:ff:ff:ff"):
         raise Exception("RESET_PN failed")
     time.sleep(0.1)
     hwsim_utils.test_connectivity(dev[0], hapd, timeout=1,