mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-03 20:27:54 +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 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, ")
 | 
					                  logg.info("9800  Closing the connection and try to re-establish, ")
 | 
				
			||||||
                  egg.close(force = True)
 | 
					                  egg.close(force = True)
 | 
				
			||||||
                  sleep(0.1)
 | 
					                  sleep(1)
 | 
				
			||||||
                  #egg.close(force = True)
 | 
					                  #egg.close(force = True)
 | 
				
			||||||
                  #sleep(0.2)
 | 
					                  #sleep(0.2)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1075,6 +1075,7 @@ def main():
 | 
				
			|||||||
         sleep(0.2)
 | 
					         sleep(0.2)
 | 
				
			||||||
      logg.info("send close to the egg child process")   
 | 
					      logg.info("send close to the egg child process")   
 | 
				
			||||||
      egg.close(force = True)   
 | 
					      egg.close(force = True)   
 | 
				
			||||||
 | 
					      sleep(1)
 | 
				
			||||||
   # 3504         
 | 
					   # 3504         
 | 
				
			||||||
   else:
 | 
					   else:
 | 
				
			||||||
      if (command is None ):
 | 
					      if (command is None ):
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -533,10 +533,11 @@ def main():
 | 
				
			|||||||
                           # 9984 hardware needs 2 chains to do one NSS at 160Mhz
 | 
					                           # 9984 hardware needs 2 chains to do one NSS at 160Mhz
 | 
				
			||||||
                           if (ni > 2):
 | 
					                           if (ni > 2):
 | 
				
			||||||
                               if(args.vht160):
 | 
					                               if(args.vht160):
 | 
				
			||||||
                                   print("NOTE: --vht160 set will set spacial streams to 2")
 | 
					 | 
				
			||||||
                                   ni = 2
 | 
					                                   ni = 2
 | 
				
			||||||
 | 
					                                   print("NOTE: --vht160 set will set ni : {}".format(ni))
 | 
				
			||||||
                                   # Set radio to 2x requested value
 | 
					                                   # Set radio to 2x requested value
 | 
				
			||||||
                                   ni *=2
 | 
					                                   ni *=2
 | 
				
			||||||
 | 
					                                   print("NOTE: --vht160 set will set  ni * 2 : {}".format(ni))
 | 
				
			||||||
                               else:    
 | 
					                               else:    
 | 
				
			||||||
                                   print("NOTE: Skipping NSS %s for 160Mhz, LANforge radios do not support more than 2NSS at 160Mhz currently."%(n))
 | 
					                                   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")
 | 
					                                   print("NOTE: use --vht160 to force 2NSS at 160Mhz")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user