mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
tests: Verify ap_vlan_iface_cleanup_multibss with per_sta_vif
This adds a new test case to run ap_vlan_iface_cleanup_multibss with per_sta_vif enabled. Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
This commit is contained in:
parent
629d369674
commit
a8c235ee62
42
tests/hwsim/multi-bss-iface-per_sta_vif.conf
Normal file
42
tests/hwsim/multi-bss-iface-per_sta_vif.conf
Normal file
@ -0,0 +1,42 @@
|
||||
driver=nl80211
|
||||
|
||||
hw_mode=g
|
||||
channel=1
|
||||
ieee80211n=1
|
||||
|
||||
interface=wlan3
|
||||
ctrl_interface=/var/run/hostapd
|
||||
|
||||
ssid=bss-1
|
||||
dynamic_vlan=1
|
||||
vlan_tagged_interface=dummy0
|
||||
vlan_bridge=brvlan
|
||||
wpa=2
|
||||
wpa_key_mgmt=WPA-EAP
|
||||
rsn_pairwise=CCMP
|
||||
ieee8021x=1
|
||||
auth_server_addr=127.0.0.1
|
||||
auth_server_port=18128
|
||||
auth_server_shared_secret=radius
|
||||
nas_identifier=nas.w1.fi
|
||||
vlan_naming=1
|
||||
per_sta_vif=1
|
||||
|
||||
bss=wlan3-2
|
||||
bssid=02:00:00:00:03:01
|
||||
ctrl_interface=/var/run/hostapd
|
||||
ssid=bss-2
|
||||
|
||||
dynamic_vlan=1
|
||||
vlan_tagged_interface=dummy0
|
||||
vlan_bridge=brvlan
|
||||
wpa=2
|
||||
wpa_key_mgmt=WPA-EAP
|
||||
rsn_pairwise=CCMP
|
||||
ieee8021x=1
|
||||
auth_server_addr=127.0.0.1
|
||||
auth_server_port=18128
|
||||
auth_server_shared_secret=radius
|
||||
nas_identifier=nas.w1.fi
|
||||
vlan_naming=1
|
||||
per_sta_vif=1
|
@ -244,7 +244,9 @@ def ap_vlan_iface_test_and_prepare_environ():
|
||||
|
||||
def test_ap_vlan_iface_cleanup_multibss(dev, apdev):
|
||||
"""AP VLAN operation in multi-BSS multi-VLAN case"""
|
||||
ap_vlan_iface_cleanup_multibss(dev, apdev, 'multi-bss-iface.conf')
|
||||
|
||||
def ap_vlan_iface_cleanup_multibss(dev, apdev, cfgfile):
|
||||
# AP VLAN with WPA2-Enterprise and RADIUS attributes changing VLANID
|
||||
# check that multiple bss do not interfere with each other with respect
|
||||
# to deletion of bridge and tagged interface.
|
||||
@ -271,7 +273,7 @@ def test_ap_vlan_iface_cleanup_multibss(dev, apdev):
|
||||
ifname = apdev[0]['ifname']
|
||||
|
||||
# start the actual test
|
||||
hostapd.add_iface(ifname, 'multi-bss-iface.conf')
|
||||
hostapd.add_iface(ifname, cfgfile)
|
||||
hapd = hostapd.Hostapd(ifname)
|
||||
hapd1 = hostapd.Hostapd("wlan3-2", 1)
|
||||
hapd1.enable()
|
||||
@ -385,6 +387,15 @@ def test_ap_vlan_iface_cleanup_multibss(dev, apdev):
|
||||
finally:
|
||||
ap_vlan_iface_cleanup_multibss_cleanup()
|
||||
|
||||
def test_ap_vlan_iface_cleanup_multibss_per_sta_vif(dev, apdev):
|
||||
"""AP VLAN operation in multi-BSS multi-VLAN case with per-sta-vif set"""
|
||||
|
||||
# AP VLAN with WPA2-Enterprise and RADIUS attributes changing VLANID
|
||||
# check that multiple bss do not interfere with each other with respect
|
||||
# to deletion of bridge and tagged interface. per_sta_vif is enabled.
|
||||
ap_vlan_iface_cleanup_multibss(dev, apdev,
|
||||
'multi-bss-iface-per_sta_vif.conf')
|
||||
|
||||
def test_ap_vlan_without_station(dev, apdev, p):
|
||||
"""AP VLAN with WPA2-PSK and no station"""
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user