aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-11-23 16:04:02 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-11-23 16:04:11 +0100
commit7d3ee9ed8dc30b8a0ee784d41bbca83258430ada (patch)
tree29a15592139f2d5da964ffc70378abd79837ac58 /src
parent228628860f970fc44b9b73597f9fef4c87a794f1 (diff)
pdch: packet_paging_request: Put back non-fitting paging entry where where it was
dequeue_paging() dequeues the first paging (at the start of the list). If a paging request is dequeued but later it cannot be added to the message being sent, it has to be re-added to the list for later processing on next message. However, existing code was enqueueing it at the end, which meant that paging request was delayed for no reason. Change-Id: Iad8e7045267d56e32f42db0fbb8448b1b1185f05
Diffstat (limited to 'src')
-rw-r--r--src/pdch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdch.cpp b/src/pdch.cpp
index a7dd2aa1..dc988776 100644
--- a/src/pdch.cpp
+++ b/src/pdch.cpp
@@ -235,7 +235,7 @@ struct msgb *gprs_rlcmac_pdch::packet_paging_request()
LOGP(DRLCMAC, LOGL_DEBUG, "- Does not fit, so schedule "
"next time\n");
/* put back paging record, because does not fit */
- llist_add_tail(&pag->list, &paging_list);
+ llist_add(&pag->list, &paging_list);
break;
}
Encoding::write_repeated_page_info(pag_vec, wp, pag->identity_lv[0],