mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-10-30 02:22:44 +00:00
Changed the DFS path for Wi-Fi7 APs (#1017)
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
committed by
GitHub
parent
ad5541425e
commit
c6b204a80f
@@ -466,7 +466,7 @@ class APLIBS:
|
||||
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"'
|
||||
cmd1 = '[ -f /sys/kernel/debug/ieee80211/phy0/ath12k_hw1/dfs_simulate_radar ] && echo "True" || echo "False"'
|
||||
output = self.run_generic_command(cmd=cmd1, idx=idx,
|
||||
print_log=print_log,
|
||||
attach_allure=attach_allure,
|
||||
@@ -476,7 +476,7 @@ class APLIBS:
|
||||
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"
|
||||
cmd = "cd && cd /sys/kernel/debug/ieee80211/phy0/ && cd ath12k_hw1 && 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,
|
||||
@@ -538,14 +538,14 @@ class APLIBS:
|
||||
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"'
|
||||
cmd1 = '[ -f /sys/kernel/debug/ieee80211/phy0/ath12k_hw1/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'
|
||||
cmd = f'cd && cd /sys/kernel/debug/ieee80211/phy0/ath12k_hw1/ && logread | grep DFS'
|
||||
else:
|
||||
cmd = f'cd && cd /sys/kernel/debug/ath12k/ && cd qcn* && cd mac1 && logread | grep DFS'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user