WPS UPnP: Add more priority for queuing EAP events
This commit is contained in:
		
							parent
							
								
									08a98b6544
								
							
						
					
					
						commit
						f30e698c08
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		|  | @ -381,7 +381,14 @@ int event_add(struct subscription *s, const struct wpabuf *data, int probereq) | |||
| 	if (len >= MAX_EVENTS_QUEUED) { | ||||
| 		wpa_printf(MSG_DEBUG, "WPS UPnP: Too many events queued for " | ||||
| 			   "subscriber %p", s); | ||||
| 		return 1; | ||||
| 		if (probereq) | ||||
| 			return 1; | ||||
| 
 | ||||
| 		/* Drop oldest entry to allow EAP event to be stored. */ | ||||
| 		e = event_dequeue(s); | ||||
| 		if (!e) | ||||
| 			return 1; | ||||
| 		event_delete(e); | ||||
| 	} | ||||
| 
 | ||||
| 	if (s->last_event_failed && probereq && len > 0) { | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Jouni Malinen
						Jouni Malinen