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"