projects
/
mech_eap.orig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
08a98b6
)
WPS UPnP: Add more priority for queuing EAP events
author
Jouni Malinen
<j@w1.fi>
Sun, 17 Oct 2010 18:30:25 +0000
(21:30 +0300)
committer
Jouni Malinen
<j@w1.fi>
Sun, 17 Oct 2010 18:30:25 +0000
(21:30 +0300)
src/wps/wps_upnp_event.c
patch
|
blob
|
history
diff --git
a/src/wps/wps_upnp_event.c
b/src/wps/wps_upnp_event.c
index
8c3ded8
..
2c8ed4f
100644
(file)
--- a/
src/wps/wps_upnp_event.c
+++ b/
src/wps/wps_upnp_event.c
@@
-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);
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) {
}
if (s->last_event_failed && probereq && len > 0) {