mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
tests: Speed up INTERWORKING_SELECT cases with freq parameter
This removes unnecessary full scan from couple of test cases that missed this optimization. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
a3dd04781c
commit
0b651713bf
@ -1006,7 +1006,7 @@ def test_ap_hs20_multi_cred_sp_prio(dev, apdev):
|
|||||||
'provisioning_sp': "example.com",
|
'provisioning_sp': "example.com",
|
||||||
'sp_priority': "2" })
|
'sp_priority': "2" })
|
||||||
dev[0].dump_monitor()
|
dev[0].dump_monitor()
|
||||||
dev[0].request("INTERWORKING_SELECT auto")
|
dev[0].request("INTERWORKING_SELECT auto freq=2412")
|
||||||
interworking_ext_sim_auth(dev[0], "SIM")
|
interworking_ext_sim_auth(dev[0], "SIM")
|
||||||
check_sp_type(dev[0], "unknown")
|
check_sp_type(dev[0], "unknown")
|
||||||
dev[0].request("REMOVE_NETWORK all")
|
dev[0].request("REMOVE_NETWORK all")
|
||||||
@ -1014,7 +1014,7 @@ def test_ap_hs20_multi_cred_sp_prio(dev, apdev):
|
|||||||
dev[0].set_cred(id1, "sp_priority", "2")
|
dev[0].set_cred(id1, "sp_priority", "2")
|
||||||
dev[0].set_cred(id2, "sp_priority", "1")
|
dev[0].set_cred(id2, "sp_priority", "1")
|
||||||
dev[0].dump_monitor()
|
dev[0].dump_monitor()
|
||||||
dev[0].request("INTERWORKING_SELECT auto")
|
dev[0].request("INTERWORKING_SELECT auto freq=2412")
|
||||||
interworking_auth(dev[0], "TTLS")
|
interworking_auth(dev[0], "TTLS")
|
||||||
check_sp_type(dev[0], "unknown")
|
check_sp_type(dev[0], "unknown")
|
||||||
|
|
||||||
@ -1050,7 +1050,7 @@ def test_ap_hs20_multi_cred_sp_prio2(dev, apdev):
|
|||||||
'provisioning_sp': "example.com",
|
'provisioning_sp': "example.com",
|
||||||
'sp_priority': "2" })
|
'sp_priority': "2" })
|
||||||
dev[0].dump_monitor()
|
dev[0].dump_monitor()
|
||||||
dev[0].request("INTERWORKING_SELECT auto")
|
dev[0].request("INTERWORKING_SELECT auto freq=2412")
|
||||||
interworking_ext_sim_auth(dev[0], "SIM")
|
interworking_ext_sim_auth(dev[0], "SIM")
|
||||||
check_sp_type(dev[0], "unknown")
|
check_sp_type(dev[0], "unknown")
|
||||||
conn_bssid = dev[0].get_status_field("bssid")
|
conn_bssid = dev[0].get_status_field("bssid")
|
||||||
@ -1061,7 +1061,7 @@ def test_ap_hs20_multi_cred_sp_prio2(dev, apdev):
|
|||||||
dev[0].set_cred(id1, "sp_priority", "2")
|
dev[0].set_cred(id1, "sp_priority", "2")
|
||||||
dev[0].set_cred(id2, "sp_priority", "1")
|
dev[0].set_cred(id2, "sp_priority", "1")
|
||||||
dev[0].dump_monitor()
|
dev[0].dump_monitor()
|
||||||
dev[0].request("INTERWORKING_SELECT auto")
|
dev[0].request("INTERWORKING_SELECT auto freq=2412")
|
||||||
interworking_auth(dev[0], "TTLS")
|
interworking_auth(dev[0], "TTLS")
|
||||||
check_sp_type(dev[0], "unknown")
|
check_sp_type(dev[0], "unknown")
|
||||||
conn_bssid = dev[0].get_status_field("bssid")
|
conn_bssid = dev[0].get_status_field("bssid")
|
||||||
|
Loading…
Reference in New Issue
Block a user