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 <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-02-16 15:47:45 -07:00
parent e821d80803
commit 27b0d65657
2 changed files with 17 additions and 2 deletions

View File

@@ -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")

View File

@@ -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"