Wifi 13946 (#974)

* Added DFS path and logread for wifi7 APs

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Added new be200 radios

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

---------

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
Jitendrakumar Kushavah
2024-07-18 16:18:07 +05:30
committed by GitHub
parent 62250480fe
commit 5736e3280e
2 changed files with 27 additions and 0 deletions

View File

@@ -464,6 +464,20 @@ class APLIBS:
cmd = f'cd && cd /sys/kernel/debug/ieee80211/phy1/mt76/ && ls && echo 1 > radar_trigger'
else:
cmd = f'cd && cd /sys/kernel/debug/ath11k/ && cd ipq* && cd mac0 && ls && echo 1 > dfs_simulate_radar'
elif type_.lower() == "wifi7":
cmd1 = '[ -f /sys/kernel/debug/ieee80211/phy1/ath12k/dfs_simulate_radar ] && echo "True" || echo "False"'
output = self.run_generic_command(cmd=cmd1, idx=idx,
print_log=print_log,
attach_allure=attach_allure,
expected_attachment_type=allure.attachment_type.JSON)
ret = output.split("\n")
status_count = int(ret.count("True"))
logging.info("Status count: " + str(status_count))
if status_count == 1:
cmd = "cd && cd /sys/kernel/debug/ieee80211/phy1/ath12k/ && echo 1 > dfs_simulate_radar"
else:
cmd = f'cd && cd /sys/kernel/debug/ath12k/ && cd qcn* && cd mac1 && ls && echo 1 > dfs_simulate_radar'
output = self.run_generic_command(cmd=cmd, idx=idx,
print_log=print_log,
attach_allure=attach_allure,
@@ -522,6 +536,18 @@ class APLIBS:
cmd = f'cd && cd /sys/kernel/debug/ieee80211/phy1/mt76/ && logread | grep DFS'
else:
cmd = f'cd && cd /sys/kernel/debug/ath11k/ && cd ipq* && cd mac0 && logread | grep DFS'
elif type_.lower() == "wifi7":
cmd1 = '[ -f /sys/kernel/debug/ieee80211/phy1/ath12k/dfs_simulate_radar ] && echo "True" || echo "False"'
output = self.run_generic_command(cmd=cmd1, idx=idx,
print_log=print_log,
attach_allure=attach_allure,
expected_attachment_type=allure.attachment_type.JSON)
logging.info("DFS logread output: " + str(output))
if output.__contains__("False"):
cmd = f'cd && cd /sys/kernel/debug/ieee80211/phy1/ath12k/ && logread | grep DFS'
else:
cmd = f'cd && cd /sys/kernel/debug/ath12k/ && cd qcn* && cd mac1 && logread | grep DFS'
try:
output = self.run_generic_command(cmd=cmd, idx=idx,
print_log=print_log,

View File

@@ -309,6 +309,7 @@ def validate_state_message_through_ap(test_object, target_object, config_data):
"wave1_radios": test_object.wave1_radios,
"mtk_radios": test_object.mtk_radios,
"ax200_radios": test_object.ax200_radios,
"be200_radios": test_object.be200_radios,
"ax210_radios": test_object.ax210_radios}
for radio in dict_all_radios_5g:
if len(dict_all_radios_5g[radio]) > 0: