From: Jouni Malinen Date: Sun, 24 Jul 2022 15:40:30 +0000 (+0300) Subject: tests: More detailed report on SAE PMKSA caching error case X-Git-Tag: hostap_2_11~1796 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e35f6ed1d48622896a4da4422bf300ee7ddd9c08;p=thirdparty%2Fhostap.git tests: More detailed report on SAE PMKSA caching error case Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py index c3061b43f..d412196fb 100644 --- a/tests/hwsim/test_sae.py +++ b/tests/hwsim/test_sae.py @@ -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")