TDLS: Ignore incoming TDLS Setup Response retries
The Setup Response timer is relatively fast (500 ms) and there are instances where it fires on the responder side after the initiator has already sent out the TDLS Setup Confirm frame. Prevent the processing of this stale TDLS Setup Response frame on the initiator side. Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
This commit is contained in:
		
							parent
							
								
									0fc5707dde
								
							
						
					
					
						commit
						dabdef9e04
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -2176,6 +2176,14 @@ static int wpa_tdls_process_tpk_m2(struct wpa_sm *sm, const u8 *src_addr, | |||
| 			   "ignore TPK M2 from " MACSTR, MAC2STR(src_addr)); | ||||
| 		return -1; | ||||
| 	} | ||||
| 
 | ||||
| 	if (peer->tpk_success) { | ||||
| 		wpa_printf(MSG_INFO, "TDLS: Ignore incoming TPK M2 retry, from " | ||||
| 			   MACSTR " as TPK M3 was already sent", | ||||
| 			   MAC2STR(src_addr)); | ||||
| 		return 0; | ||||
| 	} | ||||
| 
 | ||||
| 	wpa_tdls_tpk_retry_timeout_cancel(sm, peer, WLAN_TDLS_SETUP_REQUEST); | ||||
| 
 | ||||
| 	if (len < 3 + 2 + 1) { | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Arik Nemtsov
						Arik Nemtsov