]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Write BSS table to debug log in ap_mixed_security
authorJouni Malinen <j@w1.fi>
Sat, 17 Jan 2015 15:19:32 +0000 (17:19 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 17 Jan 2015 15:22:38 +0000 (17:22 +0200)
This makes it easier to debug test failures in BSS entry flags field.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_mixed.py

index 4121f02d3372b63ad954656ed637ac7b56910f8b..9f0db32eebabb2e816899b96c29f61eacdfce22b 100644 (file)
@@ -32,7 +32,9 @@ def test_ap_mixed_security(dev, apdev):
     if sae:
         dev[2].connect(ssid, psk=passphrase, key_mgmt="SAE", scan_freq="2412")
 
+    logger.debug(dev[0].request("SCAN_RESULTS"))
     bss = dev[0].get_bss(apdev[0]['bssid'])
+    logger.debug(bss)
     if "[WPA-EAP+PSK-TKIP]" not in bss['flags']:
         raise Exception("Unexpected flags (WPA): " + bss['flags'])
     if sae and "[WPA2-EAP+PSK+SAE+FT/EAP+FT/PSK+FT/SAE+EAP-SHA256+PSK-SHA256-CCMP]" not in bss['flags']: