mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-31 04:57:25 +01:00 
			
		
		
		
	auto-t: add reason/test arguments to hostapd deauthenticate
The reason code is obvious, but the test argument is actually a toggle to send the frame encrypted or unencrypted.
This commit is contained in:
		
							parent
							
								
									d27de1b111
								
							
						
					
					
						commit
						a972b77dc2
					
				| @ -184,8 +184,12 @@ class HostapdCLI(object): | ||||
|         cmd = self.cmdline + ['wps_pin', 'any', pin] | ||||
|         ctx.start_process(cmd).wait() | ||||
| 
 | ||||
|     def deauthenticate(self, client_address): | ||||
|     def deauthenticate(self, client_address, reason=None, test=None): | ||||
|         cmd = self.cmdline + ['deauthenticate', client_address] | ||||
| 
 | ||||
|         if reason: | ||||
|             cmd.append(f"reason={reason} test={test}") | ||||
| 
 | ||||
|         ctx.start_process(cmd).wait() | ||||
| 
 | ||||
|     def eapol_reauth(self, client_address): | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Prestwood
						James Prestwood