]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Speed up INTERWORKING_SELECT cases with freq parameter
authorJouni Malinen <j@w1.fi>
Sat, 1 Mar 2014 08:35:30 +0000 (10:35 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 08:35:34 +0000 (10:35 +0200)
This removes unnecessary full scan from couple of test cases that missed
this optimization.

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

index 0c001fe4dd7ea8acdbb616e36c568e9ec1c6f545..9d43dd9c44d908fbbe799b1bace919ac7845640c 100644 (file)
@@ -1006,7 +1006,7 @@ def test_ap_hs20_multi_cred_sp_prio(dev, apdev):
                                    'provisioning_sp': "example.com",
                                    'sp_priority': "2" })
     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")
     check_sp_type(dev[0], "unknown")
     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(id2, "sp_priority", "1")
     dev[0].dump_monitor()
-    dev[0].request("INTERWORKING_SELECT auto")
+    dev[0].request("INTERWORKING_SELECT auto freq=2412")
     interworking_auth(dev[0], "TTLS")
     check_sp_type(dev[0], "unknown")
 
@@ -1050,7 +1050,7 @@ def test_ap_hs20_multi_cred_sp_prio2(dev, apdev):
                                    'provisioning_sp': "example.com",
                                    'sp_priority': "2" })
     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")
     check_sp_type(dev[0], "unknown")
     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(id2, "sp_priority", "1")
     dev[0].dump_monitor()
-    dev[0].request("INTERWORKING_SELECT auto")
+    dev[0].request("INTERWORKING_SELECT auto freq=2412")
     interworking_auth(dev[0], "TTLS")
     check_sp_type(dev[0], "unknown")
     conn_bssid = dev[0].get_status_field("bssid")