paging: Log skip paging due to not enough free channels

Change-Id: I311f90be99c4561b45f99ce98533aab5909301d0
This commit is contained in:
Pau Espin 2022-04-21 16:24:56 +02:00
parent 35778138a8
commit 63f9a04bcc
1 changed files with 6 additions and 3 deletions

View File

@ -208,9 +208,12 @@ static void paging_handle_pending_requests(struct gsm_bts_paging_state *paging_b
struct gsm_paging_request, entry);
/* we need to determine the number of free channels */
if (paging_bts->free_chans_need != -1) {
if (can_send_pag_req(request->bts, request->chan_type) != 0)
goto skip_paging;
if (paging_bts->free_chans_need != -1 &&
can_send_pag_req(request->bts, request->chan_type) != 0) {
LOG_PAGING_BTS(request, request->bts, DPAG, LOGL_INFO,
"Paging delayed: not enough free channels (<%d)\n",
paging_bts->free_chans_need);
goto skip_paging;
}
/* Skip paging if the bts is down. */