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
This commit is contained in:
Pau Espin 2020-11-23 16:04:02 +01:00
parent 228628860f
commit 7d3ee9ed8d
1 changed files with 1 additions and 1 deletions

View File

@ -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],