mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
tests: Use SAE instead of WPA/TKIP in ap_multi_bss_acs
This makes the test case work with no-TKIP hostapd builds. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
48ac765919
commit
7162c6ecf5
@ -22,7 +22,7 @@ bss=wlan3-3
|
||||
bssid=02:00:00:00:03:02
|
||||
ctrl_interface=/var/run/hostapd
|
||||
ssid=bss-3
|
||||
wpa=1
|
||||
wpa_key_mgmt=WPA-PSK
|
||||
rsn_pairwise=TKIP
|
||||
wpa_passphrase=qwertyuiop
|
||||
wpa=2
|
||||
wpa_key_mgmt=SAE
|
||||
rsn_pairwise=CCMP
|
||||
sae_password=qwertyuiop
|
||||
|
@ -12,6 +12,7 @@ import hostapd
|
||||
from utils import skip_with_fips, alloc_fail, fail_test, HwsimSkip, clear_regdom
|
||||
from test_ap_ht import clear_scan_cache
|
||||
from test_dfs import wait_dfs_event
|
||||
from test_sae import check_sae_capab
|
||||
|
||||
def force_prev_ap_on_24g(ap):
|
||||
# For now, make sure the last operating channel was on 2.4 GHz band to get
|
||||
@ -118,6 +119,7 @@ def test_ap_acs_invalid_chanlist(dev, apdev):
|
||||
def test_ap_multi_bss_acs(dev, apdev):
|
||||
"""hostapd start with a multi-BSS configuration file using ACS"""
|
||||
skip_with_fips(dev[0])
|
||||
check_sae_capab(dev[2])
|
||||
force_prev_ap_on_24g(apdev[0])
|
||||
|
||||
# start the actual test
|
||||
@ -131,7 +133,8 @@ def test_ap_multi_bss_acs(dev, apdev):
|
||||
|
||||
dev[0].connect("bss-1", key_mgmt="NONE", scan_freq=freq)
|
||||
dev[1].connect("bss-2", psk="12345678", scan_freq=freq)
|
||||
dev[2].connect("bss-3", psk="qwertyuiop", scan_freq=freq)
|
||||
dev[2].set("sae_groups", "")
|
||||
dev[2].connect("bss-3", key_mgmt="SAE", psk="qwertyuiop", scan_freq=freq)
|
||||
|
||||
def test_ap_acs_40mhz(dev, apdev):
|
||||
"""Automatic channel selection for 40 MHz channel"""
|
||||
|
Loading…
Reference in New Issue
Block a user