Skip to content

Commit

Permalink
Wifi 13946 (#974)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
jitendracandela authored Jul 18, 2024
1 parent 6225048 commit 5736e32
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions libs/tip_2x/ap_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,20 @@ def dfs(self, idx=0, print_log=True, attach_allure=False):
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,
Expand Down Expand Up @@ -522,6 +536,18 @@ def dfs_logread(self, idx=0, print_log=True, attach_allure=False):
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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ def verify_type_of_value(message, schema, path):
"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:
Expand Down

0 comments on commit 5736e32

Please sign in to comment.