]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: EAP-AKA' and EAP-AKA both enabled (bidding mechanism)
authorJouni Malinen <j@w1.fi>
Sat, 17 May 2014 21:04:18 +0000 (00:04 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 17 May 2014 21:04:18 +0000 (00:04 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/auth_serv/eap_user.conf
tests/hwsim/test_ap_eap.py

index 2358a59025c1bd7d8472a9402c2febb0204e8fe8..2bbfae83d705f8f82208cc39d4a309b1a5537f27 100644 (file)
@@ -32,6 +32,7 @@ radius_accept_attr=25:x:00112233445566778899aa
 "0232010000000000@ttls"        TTLS,AKA
 "0232010000000000@peap"        PEAP,AKA
 "0232010000000000@fast"        FAST,AKA
+"6555444333222111@both" AKA',AKA
 
 "0"*           AKA
 "1"*           SIM
index 43983bbb38b97c5f59888cf0cc2d649b3b9f5e47..5b5cfd62100f800f72dbdb205665c7800882f14f 100644 (file)
@@ -362,6 +362,15 @@ def test_ap_wpa2_eap_aka_prime(dev, apdev):
     hwsim_utils.test_connectivity(dev[0].ifname, apdev[0]['ifname'])
     eap_reauth(dev[0], "AKA'")
 
+    logger.info("EAP-AKA' bidding protection when EAP-AKA enabled as well")
+    dev[1].connect("test-wpa2-eap", key_mgmt="WPA-EAP", eap="AKA' AKA",
+                   identity="6555444333222111@both",
+                   password="5122250214c33e723a5dd523fc145fc0:981d464c7c52eb6e5036234984ad0bcf:000000000123",
+                   wait_connect=False, scan_freq="2412")
+    ev = dev[1].wait_event(["CTRL-EVENT-CONNECTED"], timeout=15)
+    if ev is None:
+        raise Exception("Connection with the AP timed out")
+
     logger.info("Negative test with incorrect key")
     dev[0].request("REMOVE_NETWORK all")
     eap_connect(dev[0], apdev[0], "AKA'", "6555444333222111",