mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-31 04:57:25 +01:00 
			
		
		
		
	auto-t: make waiting for channel switch configurable
This commit is contained in:
		
							parent
							
								
									dc1589f3fe
								
							
						
					
					
						commit
						405d1ab77c
					
				| @ -288,13 +288,15 @@ class HostapdCLI(object): | ||||
|         cmd = 'RESEND_M3 %s' % address | ||||
|         self.ctrl_sock.sendall(cmd.encode('utf-8')) | ||||
| 
 | ||||
|     def chan_switch(self, channel): | ||||
|     def chan_switch(self, channel, wait=True): | ||||
|         if channel > len(chan_freq_map): | ||||
|             raise Exception("Only 2.4GHz channels supported for chan_switch") | ||||
| 
 | ||||
|         cmd = self.cmdline + ['chan_switch', '50', str(chan_freq_map[channel])] | ||||
|         ctx.start_process(cmd).wait() | ||||
|         self.wait_for_event('AP-CSA-FINISHED') | ||||
| 
 | ||||
|         if wait: | ||||
|             self.wait_for_event('AP-CSA-FINISHED') | ||||
| 
 | ||||
|     def _get_status(self): | ||||
|         ret = {} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Prestwood
						James Prestwood