mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	lf_cisco_power.py cisco_wifi_ctl.py: made consistant time out and impoved comments
This commit is contained in:
		@@ -614,7 +614,7 @@ def main():
 | 
			
		||||
                  logg.info("9800 Timed out waiting for initial prompt send logout loop_count: {} i: {} before {} after {}".format(loop_count, i, egg.before,egg.after))
 | 
			
		||||
                  logg.info("9800  Closing the connection and try to re-establish, ")
 | 
			
		||||
                  egg.close(force = True)
 | 
			
		||||
                  sleep(0.1)
 | 
			
		||||
                  sleep(1)
 | 
			
		||||
                  #egg.close(force = True)
 | 
			
		||||
                  #sleep(0.2)
 | 
			
		||||
 | 
			
		||||
@@ -1075,6 +1075,7 @@ def main():
 | 
			
		||||
         sleep(0.2)
 | 
			
		||||
      logg.info("send close to the egg child process")   
 | 
			
		||||
      egg.close(force = True)   
 | 
			
		||||
      sleep(1)
 | 
			
		||||
   # 3504         
 | 
			
		||||
   else:
 | 
			
		||||
      if (command is None ):
 | 
			
		||||
 
 | 
			
		||||
@@ -533,10 +533,11 @@ def main():
 | 
			
		||||
                           # 9984 hardware needs 2 chains to do one NSS at 160Mhz
 | 
			
		||||
                           if (ni > 2):
 | 
			
		||||
                               if(args.vht160):
 | 
			
		||||
                                   print("NOTE: --vht160 set will set spacial streams to 2")
 | 
			
		||||
                                   ni = 2
 | 
			
		||||
                                   print("NOTE: --vht160 set will set ni : {}".format(ni))
 | 
			
		||||
                                   # Set radio to 2x requested value
 | 
			
		||||
                                   ni *=2
 | 
			
		||||
                                   print("NOTE: --vht160 set will set  ni * 2 : {}".format(ni))
 | 
			
		||||
                               else:    
 | 
			
		||||
                                   print("NOTE: Skipping NSS %s for 160Mhz, LANforge radios do not support more than 2NSS at 160Mhz currently."%(n))
 | 
			
		||||
                                   print("NOTE: use --vht160 to force 2NSS at 160Mhz")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user