]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Use SAE instead of WPA/TKIP in ap_multi_bss_acs
authorJouni Malinen <jouni@codeaurora.org>
Fri, 17 Apr 2020 18:55:18 +0000 (21:55 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 17 Apr 2020 20:51:58 +0000 (23:51 +0300)
This makes the test case work with no-TKIP hostapd builds.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/multi-bss-acs.conf
tests/hwsim/test_ap_acs.py

index 4e1db46c002c709ef9fef6242f5e286671b54421..f5a25e82bb55fddfc84ce714d0e99262a2ee0ac5 100644 (file)
@@ -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
index ed05c903ae446cdb3392f3b78456f3eea1d33d73..62bf8553a391f3dbc2df42c7c75f1227a353f80c 100644 (file)
@@ -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"""