]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Verify correct VLAN after RSN pre-authentication
authorMichael Braun <michael-dev@fami-braun.de>
Thu, 21 Jan 2016 13:52:07 +0000 (14:52 +0100)
committerJouni Malinen <j@w1.fi>
Wed, 17 Feb 2016 09:46:13 +0000 (11:46 +0200)
This enhances the test pmksa_cache_preauth_vlan_used to check
connectivity in the correct VLAN bridge.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
tests/hwsim/test_pmksa_cache.py

index e51ca919836f5a36f5826b581dc52214aec38ed9..f26c240d75f409d725c4f5f22908cdad585a1920 100644 (file)
@@ -10,6 +10,7 @@ import subprocess
 import time
 
 import hostapd
+import hwsim_utils
 from wpasupplicant import WpaSupplicant
 from utils import alloc_fail
 from test_ap_eap import eap_connect
@@ -508,6 +509,9 @@ def test_pmksa_cache_preauth_vlan_used(dev, apdev):
         eap_connect(dev[0], apdev[0], "PAX", "vlan1",
                     password_hex="0123456789abcdef0123456789abcdef")
 
+        # Verify connectivity in the correct VLAN
+        hwsim_utils.test_connectivity_iface(dev[0], hapd, "brvlan1")
+
         params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
         params['bridge'] = 'ap-br0'
         params['rsn_preauth'] = '1'
@@ -550,6 +554,9 @@ def test_pmksa_cache_preauth_vlan_used(dev, apdev):
         if pmksa['pmkid'] != pmksa2['pmkid']:
             raise Exception("Unexpected PMKID change")
 
+        # Verify connectivity in the correct VLAN
+        hwsim_utils.test_connectivity_iface(dev[0], hapd, "brvlan1")
+
         # Disconnect the STA from both APs to avoid forceful ifdown by the
         # test script on a VLAN that this has an associated STA. That used to
         # trigger a mac80211 warning.