From 27b0d6565731804e15c9780b204f603d7003a857 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Tue, 16 Feb 2021 15:47:45 -0700 Subject: [PATCH] cisco_wifi_ctl.py: auto_rf to print out till Radar Information, change lf_cisco_dfs.py sweep_time to 0 for continuout Signed-off-by: Chuck SmileyRekiere --- cisco_wifi_ctl.py | 15 +++++++++++++++ py-scripts/lf_cisco_dfs.py | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/cisco_wifi_ctl.py b/cisco_wifi_ctl.py index 43a3959b..487fb6f6 100755 --- a/cisco_wifi_ctl.py +++ b/cisco_wifi_ctl.py @@ -959,6 +959,21 @@ def main(): if (args.action == "auto_rf"): command = "show ap auto-rf 802.11a %s"%(args.ap) + egg.sendline(command) + command_done = False + loop_count = 0 + while command_done == False and loop_count <= 10 : + i = egg.expect_exact(["--More--",CCP,pexpect.TIMEOUT],timeout=2) + if i == 0: + print(egg.before.decode('utf-8', 'ignore')) + egg.sendline(NL) + if i == 1: + print(egg.before.decode('utf-8', 'ignore')) + command_done = True + if i == 2: + print(egg.before.decode('utf-8', 'ignore')) + command_done = True + command = None # so additional command will not be sent if ((args.action == "ap_country") and ((args.value is None) or (args.ap is None))): raise Exception("ap_country requires country and AP name") diff --git a/py-scripts/lf_cisco_dfs.py b/py-scripts/lf_cisco_dfs.py index 85ceab31..98e35d95 100755 --- a/py-scripts/lf_cisco_dfs.py +++ b/py-scripts/lf_cisco_dfs.py @@ -1467,8 +1467,8 @@ class L3VariableTime(Realm): interval_ = "1428" count_ = "18" frequency_ = "5260000" # channel 52 - sweep_time_ = "1000" - #sweep_time_ = "0" + #sweep_time_ = "1000" + sweep_time_ = "0" if_gain_ = "40" bb_gain_ = "20" gain_ = "0"