The message cache should be a strict ring buffer, suppressed message
should not move to the front of the queue.
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
.mic = mic,
};
- msg = l_queue_remove_if(net->msg_cache, match_cache, &tst);
+ msg = l_queue_find(net->msg_cache, match_cache, &tst);
if (msg) {
l_debug("Supressing duplicate %4.4x + %6.6x + %8.8x",
src, seq, mic);
- l_queue_push_head(net->msg_cache, msg);
return true;
}