]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Verify EAPOL reauthentication after FT protocol
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 19 Nov 2015 19:05:08 +0000 (21:05 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 19 Nov 2015 19:16:29 +0000 (21:16 +0200)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_ap_ft.py

index f95966cb8fb0e8e073b431f70b30b9a12ce9619e..a342c5343b7eb093e24c505504a57626e8e29f64 100644 (file)
@@ -433,6 +433,21 @@ def test_ap_ft_eap(dev, apdev):
     check_mib(dev[0], [ ("dot11RSNAAuthenticationSuiteRequested", "00-0f-ac-3"),
                         ("dot11RSNAAuthenticationSuiteSelected", "00-0f-ac-3") ])
 
+    # Verify EAPOL reauthentication after FT protocol
+    if dev[0].get_status_field('bssid') == apdev[0]['bssid']:
+        ap = hapd
+    else:
+        ap = hapd1
+    ap.request("EAPOL_REAUTH " + dev[0].own_addr())
+    ev = dev[0].wait_event(["CTRL-EVENT-EAP-STARTED"], timeout=5)
+    if ev is None:
+        raise Exception("EAP authentication did not start")
+    ev = dev[0].wait_event(["CTRL-EVENT-EAP-SUCCESS"], timeout=5)
+    if ev is None:
+        raise Exception("EAP authentication did not succeed")
+    time.sleep(0.1)
+    hwsim_utils.test_connectivity(dev[0], ap)
+
 def test_ap_ft_eap_pull(dev, apdev):
     """WPA2-EAP-FT AP (pull PMK)"""
     ssid = "test-ft"