]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Check Interworking already-connected with all credential types
authorJouni Malinen <j@w1.fi>
Sat, 1 Mar 2014 09:48:09 +0000 (11:48 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 08:35:34 +0000 (10:35 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_hs20.py

index 0fabcd6178324f5f10ce7e773e3d2950691ee195..f199941bd2849bdd27af14df94ef38b8601f7215 100644 (file)
@@ -352,6 +352,10 @@ def test_ap_hs20_sim(dev, apdev):
     if not hlr_auc_gw_available():
         return "skip"
     hs20_simulated_sim(dev[0], apdev[0], "SIM")
+    dev[0].request("INTERWORKING_SELECT auto freq=2412")
+    ev = dev[0].wait_event(["INTERWORKING-ALREADY-CONNECTED"], timeout=15)
+    if ev is None:
+        raise Exception("Timeout on already-connected event")
 
 def test_ap_hs20_aka(dev, apdev):
     """Hotspot 2.0 with simulated USIM and EAP-AKA"""
@@ -520,6 +524,10 @@ def test_ap_hs20_roaming_consortium(dev, apdev):
     interworking_select(dev[0], bssid, "home", freq="2412")
     interworking_connect(dev[0], bssid, "PEAP")
     check_sp_type(dev[0], "home")
+    dev[0].request("INTERWORKING_SELECT auto freq=2412")
+    ev = dev[0].wait_event(["INTERWORKING-ALREADY-CONNECTED"], timeout=15)
+    if ev is None:
+        raise Exception("Timeout on already-connected event")
 
 def test_ap_hs20_username_roaming(dev, apdev):
     """Hotspot 2.0 connection in username/password credential (roaming)"""