tests: Extend color change test for a non-first link of an AP MLD

Currently color change test is supported only on the first link of the
AP MLD. Extend the support to test on non-first link as well.

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
This commit is contained in:
Aditya Kumar Singh 2024-06-12 19:57:54 +05:30 committed by Jouni Malinen
parent 61eb89d5fd
commit b7c6aa3ac6

View file

@ -2166,7 +2166,23 @@ def test_eht_mlo_color_change(dev, apdev):
if color != "60":
raise Exception("Expected current he_bss_color to be 60; was " + color)
#TODO: CCA on non-first link
logger.info("Perform CCA on 2nd link")
if "OK" not in hapd1.request("COLOR_CHANGE 25"):
raise Exception("COLOR_CHANGE failed")
time.sleep(1.5)
color = hapd1.get_status_field("he_bss_color")
if color != "25":
raise Exception("Expected current he_bss_color to be 25; was " + color)
logger.info("Perform CCA on 2nd link again")
if "OK" not in hapd1.request("COLOR_CHANGE 5"):
raise Exception("COLOR_CHANGE failed")
time.sleep(1.5)
color = hapd1.get_status_field("he_bss_color")
if color != "5":
raise Exception("Expected current he_bss_color to be 5; was " + color)
hapd0.dump_monitor()
hapd1.dump_monitor()