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 <j@w1.fi>
master
Jouni Malinen 4 years ago
parent 4834c6869d
commit 7b1105afef

@ -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))

Loading…
Cancel
Save