]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: More detailed report on SAE PMKSA caching error case
authorJouni Malinen <quic_jouni@quicinc.com>
Sun, 24 Jul 2022 15:40:30 +0000 (18:40 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 24 Jul 2022 21:31:51 +0000 (00:31 +0300)
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_sae.py

index c3061b43f404c110ab074fd0fd1a3ccb4af0128e..d412196fbc65044b5a16a668671117bd5bf3a953 100644 (file)
@@ -135,8 +135,9 @@ def run_sae_pmksa_caching(dev, apdev):
     dev[0].wait_disconnected()
     dev[0].request("RECONNECT")
     dev[0].wait_connected(timeout=15, error="Reconnect timed out")
-    if dev[0].get_status_field('sae_group') is not None:
-            raise Exception("SAE group claimed to have been used")
+    val = dev[0].get_status_field('sae_group')
+    if val is not None:
+        raise Exception("SAE group claimed to have been used: " + val)
     sta0 = hapd.get_sta(dev[0].own_addr())
     if sta0['wpa'] != '2' or sta0['AKMSuiteSelector'] != '00-0f-ac-8':
         raise Exception("SAE STA(0) AKM suite selector reported incorrectly after PMKSA caching")