mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
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:
@@ -959,6 +959,21 @@ def main():
|
|||||||
|
|
||||||
if (args.action == "auto_rf"):
|
if (args.action == "auto_rf"):
|
||||||
command = "show ap auto-rf 802.11a %s"%(args.ap)
|
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))):
|
if ((args.action == "ap_country") and ((args.value is None) or (args.ap is None))):
|
||||||
raise Exception("ap_country requires country and AP name")
|
raise Exception("ap_country requires country and AP name")
|
||||||
|
|||||||
@@ -1467,8 +1467,8 @@ class L3VariableTime(Realm):
|
|||||||
interval_ = "1428"
|
interval_ = "1428"
|
||||||
count_ = "18"
|
count_ = "18"
|
||||||
frequency_ = "5260000" # channel 52
|
frequency_ = "5260000" # channel 52
|
||||||
sweep_time_ = "1000"
|
#sweep_time_ = "1000"
|
||||||
#sweep_time_ = "0"
|
sweep_time_ = "0"
|
||||||
if_gain_ = "40"
|
if_gain_ = "40"
|
||||||
bb_gain_ = "20"
|
bb_gain_ = "20"
|
||||||
gain_ = "0"
|
gain_ = "0"
|
||||||
|
|||||||
Reference in New Issue
Block a user