mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-10-29 18:12:34 +00:00
Added DFS path for Mediatek Chipsets (#932)
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
committed by
GitHub
parent
77d4eb2b07
commit
7b96829d22
@@ -450,7 +450,20 @@ class APLIBS:
|
||||
if status_count_1 == 1:
|
||||
cmd = f'cd && cd /sys/kernel/debug/ath11k/ && cd qcn6122_2 && cd mac0 && ls && echo 1 > dfs_simulate_radar'
|
||||
else:
|
||||
cmd = f'cd && cd /sys/kernel/debug/ath11k/ && cd ipq* && cd mac0 && ls && echo 1 > dfs_simulate_radar'
|
||||
#cmd = f'cd && cd /sys/kernel/debug/ath11k/ && cd ipq* && cd mac0 && ls && echo 1 > dfs_simulate_radar'
|
||||
cmd1 = '[ -f /sys/kernel/debug/ieee80211/phy1/mt76/radar_trigger ] && 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_1 = int(ret.count("True"))
|
||||
logging.info("Status count: " + str(status_count_1))
|
||||
if status_count_1 == 1:
|
||||
logging.info("In Mediatek Chipsets")
|
||||
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'
|
||||
output = self.run_generic_command(cmd=cmd, idx=idx,
|
||||
print_log=print_log,
|
||||
attach_allure=attach_allure,
|
||||
@@ -496,7 +509,19 @@ class APLIBS:
|
||||
if status_count_1 == 1:
|
||||
cmd = f'cd && cd /sys/kernel/debug/ath11k/ && cd qcn6122_2 && cd mac0 && logread | grep DFS'
|
||||
else:
|
||||
cmd = f'cd && cd /sys/kernel/debug/ath11k/ && cd ipq* && cd mac0 && logread | grep DFS'
|
||||
#cmd = f'cd && cd /sys/kernel/debug/ath11k/ && cd ipq* && cd mac0 && logread | grep DFS'
|
||||
cmd1 = '[ -f /sys/kernel/debug/ieee80211/phy1/mt76/radar_trigger ] && 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_1 = int(ret.count("True"))
|
||||
logging.info("Status count: " + str(status_count_1))
|
||||
if status_count_1 == 1:
|
||||
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'
|
||||
try:
|
||||
output = self.run_generic_command(cmd=cmd, idx=idx,
|
||||
print_log=print_log,
|
||||
|
||||
Reference in New Issue
Block a user