From 7b1105afef5de3427d155673b09a4ca80281de5f Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 29 Dec 2019 19:32:29 +0200 Subject: [PATCH] RRB: Do not reorder locally delivered messages Add new messages to the end of the l2_oui_queue instead of inserting them at the beginning so that the dl_list_for_each_safe() iteration in hostapd_oui_deliver_later() goes through the messages in the same order they were originally queued. Signed-off-by: Jouni Malinen --- src/ap/wpa_auth_glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c index 49728a307..daddc59cc 100644 --- a/src/ap/wpa_auth_glue.c +++ b/src/ap/wpa_auth_glue.c @@ -740,7 +740,7 @@ static int hostapd_wpa_auth_oui_iter(struct hostapd_iface *iface, void *ctx) data->data_len = idata->data_len; data->oui_suffix = idata->oui_suffix; - dl_list_add(&hapd->l2_oui_queue, &data->list); + dl_list_add_tail(&hapd->l2_oui_queue, &data->list); if (!eloop_is_timeout_registered(hostapd_oui_deliver_later, hapd, NULL))