From 98ce8ae3283841f6bef0468669516bae161c6d03 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 14 Mar 2021 18:07:19 +0200 Subject: [PATCH] tests: Automatic channel selection for VHT 80+80 Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_acs.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/hwsim/test_ap_acs.py b/tests/hwsim/test_ap_acs.py index 08eaee5fd..8fc5ec4f3 100644 --- a/tests/hwsim/test_ap_acs.py +++ b/tests/hwsim/test_ap_acs.py @@ -284,6 +284,30 @@ def test_ap_acs_vht40(dev, apdev): finally: clear_regdom(hapd, dev) +def test_ap_acs_vht80p80(dev, apdev): + """Automatic channel selection for VHT 80+80""" + try: + hapd = None + force_prev_ap_on_5g(apdev[0]) + params = hostapd.wpa2_params(ssid="test-acs", passphrase="12345678") + params['hw_mode'] = 'a' + params['channel'] = '0' + params['ht_capab'] = '[HT40+]' + params['country_code'] = 'US' + params['ieee80211ac'] = '1' + params['vht_oper_chwidth'] = '3' + hapd = hostapd.add_ap(apdev[0], params, wait_enabled=False) + ev = hapd.wait_event(["ACS-COMPLETED"], timeout=20) + if ev is None: + raise Exception("ACS did not complete") + # ACS for 80+80 is not yet supported, so the AP setup itself will fail. + # Do not try to connection before this gets fully supported. + ev = hapd.wait_event(["AP-ENABLED", "AP-DISABLED"], timeout=10) + if ev is None: + raise Exception("AP enabled/disabled not reported") + finally: + clear_regdom(hapd, dev) + def test_ap_acs_vht160(dev, apdev): """Automatic channel selection for VHT160""" try: