mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
tests: Print BSS data on ap_wps_ie_fragmention error case
This makes it easier to debug what failed. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
4f62bfefa4
commit
d7a68ad6b9
@ -1078,6 +1078,7 @@ def test_ap_wps_ie_fragmentation(dev, apdev):
|
|||||||
raise Exception("Association with the AP timed out")
|
raise Exception("Association with the AP timed out")
|
||||||
bss = dev[0].get_bss(apdev[0]['bssid'])
|
bss = dev[0].get_bss(apdev[0]['bssid'])
|
||||||
if "wps_device_name" not in bss or bss['wps_device_name'] != "1234567890abcdef1234567890abcdef":
|
if "wps_device_name" not in bss or bss['wps_device_name'] != "1234567890abcdef1234567890abcdef":
|
||||||
|
logger.info(bss)
|
||||||
raise Exception("Device Name not received correctly")
|
raise Exception("Device Name not received correctly")
|
||||||
if len(re.findall("dd..0050f204", bss['ie'])) != 2:
|
if len(re.findall("dd..0050f204", bss['ie'])) != 2:
|
||||||
raise Exception("Unexpected number of WPS IEs")
|
raise Exception("Unexpected number of WPS IEs")
|
||||||
|
Loading…
Reference in New Issue
Block a user