]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Print BSS data on ap_wps_ie_fragmention error case
authorJouni Malinen <j@w1.fi>
Sat, 22 Mar 2014 16:39:17 +0000 (18:39 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 22 Mar 2014 17:01:34 +0000 (19:01 +0200)
This makes it easier to debug what failed.

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

index ee64077d6c6825110473545824a3226076e81ffd..bd5e3c05cb2bb2bde0b1ecef1c61c815821e8bd3 100644 (file)
@@ -1078,6 +1078,7 @@ def test_ap_wps_ie_fragmentation(dev, apdev):
         raise Exception("Association with the AP timed out")
     bss = dev[0].get_bss(apdev[0]['bssid'])
     if "wps_device_name" not in bss or bss['wps_device_name'] != "1234567890abcdef1234567890abcdef":
+        logger.info(bss)
         raise Exception("Device Name not received correctly")
     if len(re.findall("dd..0050f204", bss['ie'])) != 2:
         raise Exception("Unexpected number of WPS IEs")