mirror of
				https://github.com/Telecominfraproject/wlan-testing.git
				synced 2025-10-30 18:38:06 +00:00 
			
		
		
		
	Wifi 9648 (#624)
* Added print statement Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Fixed dfs issue for wifi-5 AP's Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
		| @@ -619,18 +619,22 @@ class APNOS: | |||||||
|  |  | ||||||
|     def dfs(self): |     def dfs(self): | ||||||
|         if self.type.lower() == "wifi5": |         if self.type.lower() == "wifi5": | ||||||
|             #cmd = "cd /sys/kernel/debug/ieee80211/phy1/ath10k/ && echo 1 > dfs_simulate_radar" |             client = self.ssh_cli_connect() | ||||||
|             #print("cmd: ", cmd) |             cmd1 = '[ -f /sys/kernel/debug/ieee80211/phy1/ath10k/dfs_simulate_radar ] && echo "True" || echo "False"' | ||||||
|             if self.mode: |             if self.mode: | ||||||
|                 client = self.ssh_cli_connect() |                 cmd = f"cd ~/cicd-git/ && ./openwrt_ctl.py {self.owrt_args} -t {self.tty} --action " \ | ||||||
|                 cmd1 = '[ -f /sys/kernel/debug/ieee80211/phy1/ath10k/dfs_simulate_radar ] && echo "True" || echo "False"' |                       f"cmd --value \"{cmd1}\" " | ||||||
|                 stdin, stdout, stderr = client.exec_command(cmd1) |                 stdin, stdout, stderr = client.exec_command(cmd) | ||||||
|                 output = str(stdout.read()) |                 output = stdout.read() | ||||||
|                 if output.__contains__("False"): |                 status = output.decode('utf-8') | ||||||
|                     cmd = "cd /sys/kernel/debug/ieee80211/phy0/ath10k/ && echo 1 > dfs_simulate_radar" |                 status_count = int(status.count("True")) | ||||||
|                 else: |                 print("status", status) | ||||||
|                     cmd = "cd /sys/kernel/debug/ieee80211/phy1/ath10k/ && echo 1 > dfs_simulate_radar" |                 print("count", status_count) | ||||||
|                 client.close() |                 client.close() | ||||||
|  |                 if status_count == 1: | ||||||
|  |                     cmd = "cd && cd /sys/kernel/debug/ieee80211/phy0/ath10k/ && echo 1 > dfs_simulate_radar" | ||||||
|  |                 else: | ||||||
|  |                     cmd = "cd && cd /sys/kernel/debug/ieee80211/phy1/ath10k/ && echo 1 > dfs_simulate_radar" | ||||||
|                 command = f"cd ~/cicd-git/ && ./openwrt_ctl.py {self.owrt_args} -t {self.tty} --action " \ |                 command = f"cd ~/cicd-git/ && ./openwrt_ctl.py {self.owrt_args} -t {self.tty} --action " \ | ||||||
|                           f"cmd --value \"{cmd}\" " |                           f"cmd --value \"{cmd}\" " | ||||||
|         elif self.type.lower() == "wifi6" or self.type.lower() == "wifi6e": |         elif self.type.lower() == "wifi6" or self.type.lower() == "wifi6e": | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jitendracandela
					jitendracandela