From: Jouni Malinen Date: Sun, 26 Apr 2015 12:59:19 +0000 (+0300) Subject: tests: Check vlan_id information in STA output X-Git-Tag: hostap_2_5~794 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f80fd58de66fa9fb8dccf899ac51f929f0801e15;p=thirdparty%2Fhostap.git tests: Check vlan_id information in STA output In addition, this adds some delay between the authentication and data connectivity test through the newly added VLAN and by doing so, makes ap_vlan_wpa2_radius_id_change a bit more robust. It was possible for the EAPOL-Key message 4/4 not having yet been processed by hostapd at the time the data test started. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_vlan.py b/tests/hwsim/test_ap_vlan.py index 7b10ea765..f7d7e2c4e 100644 --- a/tests/hwsim/test_ap_vlan.py +++ b/tests/hwsim/test_ap_vlan.py @@ -119,6 +119,11 @@ def test_ap_vlan_wpa2_radius_id_change(dev, apdev): state = dev[0].get_status_field('wpa_state') if state != "COMPLETED": raise Exception("Unexpected state after reauth: " + state) + sta = hapd.get_sta(dev[0].own_addr()) + if 'vlan_id' not in sta: + raise Exception("No VLAN ID in STA info") + if sta['vlan_id'] != '2': + raise Exception("Unexpected VLAN ID: " + sta['vlan_id']) hwsim_utils.test_connectivity_iface(dev[0], hapd, "brvlan2") def test_ap_vlan_wpa2_radius_required(dev, apdev):