Parcourir la source

tests: Write BSS table to debug log in ap_mixed_security

This makes it easier to debug test failures in BSS entry flags field.

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen il y a 10 ans
Parent
commit
3dacd58b0d
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      tests/hwsim/test_ap_mixed.py

+ 2 - 0
tests/hwsim/test_ap_mixed.py

@@ -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']: