mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-29 19:17:31 +01:00 
			
		
		
		
	eapol: add eapol_set_started
FILS does not require an eapol_sm for authentication, but rekeys are still performed using the 4-way handshake. Because of this FILS needs to create a eapol_sm in a 'started' state, but without calling eapol_start as this will initialize EAP and create handshake timeouts. This allows EAPoL to wait for any 4-way packets, and handle them as rekeys.
This commit is contained in:
		
							parent
							
								
									433373fe28
								
							
						
					
					
						commit
						82eeef1c29
					
				| @ -2201,6 +2201,11 @@ void __eapol_set_rekey_offload_func(eapol_rekey_offload_func_t func) | ||||
| 	rekey_offload = func; | ||||
| } | ||||
| 
 | ||||
| void eapol_set_started(struct eapol_sm *sm) | ||||
| { | ||||
| 	sm->started = true; | ||||
| } | ||||
| 
 | ||||
| void eapol_register(struct eapol_sm *sm) | ||||
| { | ||||
| 	l_queue_push_head(state_machines, sm); | ||||
|  | ||||
| @ -116,6 +116,7 @@ void eapol_sm_set_listen_interval(struct eapol_sm *sm, uint16_t interval); | ||||
| void eapol_sm_set_user_data(struct eapol_sm *sm, void *user_data); | ||||
| void eapol_sm_set_event_func(struct eapol_sm *sm, eapol_sm_event_func_t func); | ||||
| 
 | ||||
| void eapol_set_started(struct eapol_sm *sm); | ||||
| void eapol_register(struct eapol_sm *sm); | ||||
| bool eapol_start(struct eapol_sm *sm); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Prestwood
						James Prestwood