mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
tests: Make ap_ft_ap_oom4 more robust against compiler optimizations
It looks like the wpa_auth_get_seqnum() function might not always be visible in the backtrace since the compiler may optimize that wrapper away. Use the i802_get_seqnum() function instead as a trigger for the get_seqnum operation failure trigger to avoid this. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
f73dd0a692
commit
360d8d4e3c
@ -1871,7 +1871,7 @@ def test_ap_ft_ap_oom4(dev, apdev):
|
|||||||
if dev[0].get_status_field('bssid') != bssid1:
|
if dev[0].get_status_field('bssid') != bssid1:
|
||||||
raise Exception("Did not roam to AP1")
|
raise Exception("Did not roam to AP1")
|
||||||
|
|
||||||
with fail_test(hapd0, 1, "wpa_auth_get_seqnum;wpa_ft_gtk_subelem"):
|
with fail_test(hapd0, 1, "i802_get_seqnum;wpa_ft_gtk_subelem"):
|
||||||
dev[0].roam(bssid0)
|
dev[0].roam(bssid0)
|
||||||
if dev[0].get_status_field('bssid') != bssid0:
|
if dev[0].get_status_field('bssid') != bssid0:
|
||||||
raise Exception("Did not roam to AP0")
|
raise Exception("Did not roam to AP0")
|
||||||
|
Loading…
Reference in New Issue
Block a user