WPS UPnP: Add more priority for queuing EAP events

This commit is contained in:
Jouni Malinen 2010-10-17 21:30:25 +03:00
parent 08a98b6544
commit f30e698c08

View file

@ -381,7 +381,14 @@ int event_add(struct subscription *s, const struct wpabuf *data, int probereq)
if (len >= MAX_EVENTS_QUEUED) { if (len >= MAX_EVENTS_QUEUED) {
wpa_printf(MSG_DEBUG, "WPS UPnP: Too many events queued for " wpa_printf(MSG_DEBUG, "WPS UPnP: Too many events queued for "
"subscriber %p", s); "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) { if (s->last_event_failed && probereq && len > 0) {