Add eht_mlo_color_change test case to perform color change on first link of a AP MLD. Performing on non-first link will be done later. Signed-off-by: Aditya Kumar Singh <quic_adisi@xxxxxxxxxxx> --- tests/hwsim/test_eht.py | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/tests/hwsim/test_eht.py b/tests/hwsim/test_eht.py index a012fe4e799d..30ce7a3dc45b 100644 --- a/tests/hwsim/test_eht.py +++ b/tests/hwsim/test_eht.py @@ -1823,3 +1823,42 @@ def test_eht_mlo_csa(dev, apdev): traffic_test(wpas, hapd0) #TODO: CSA on non-first link + +def test_eht_mlo_color_change(dev, apdev): + """EHT MLD AP. Color Change Announcement""" + with HWSimRadio(use_mlo=True) as (hapd_radio, hapd_iface), \ + HWSimRadio(use_mlo=True) as (wpas_radio, wpas_iface): + + ssid = "mld_ap" + passphrase = 'qwertyuiop' + + params = eht_mld_ap_wpa2_params(ssid, passphrase, + key_mgmt="SAE", mfp="2", pwe='1') + params['link_id'] = '0' + params['he_bss_color'] = '42' + + hapd0 = eht_mld_enable_ap(hapd_iface, params) + + params['channel'] = '6' + params['link_id'] = '1' + params['he_bss_color'] = '24' + + hapd1 = eht_mld_enable_ap(hapd_iface, params) + + logger.info("Perform CCA on 1st link") + hapd0.request("COLOR_CHANGE 10") + time.sleep(1.5) + + color = hapd0.get_status_field("he_bss_color") + if color != "10": + raise Exception("Expected current he_bss_color to be 10") + + logger.info("Perform CCA on 1st link again") + hapd0.request("COLOR_CHANGE 60") + time.sleep(1.5) + + color = hapd0.get_status_field("he_bss_color") + if color != "60": + raise Exception("Expected current he_bss_color to be 60") + + #TODO: CCA on non-first link -- 2.34.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap