agch: Log error if BS_AG_BLKS_RES is != 1 in SI3

Currently, the DSP is always configured with u8NbrOfAgch = 1 before
SYSINFO type 3 is received. Thus using a different value for
BS_AG_BLKS_RES may lead to inconsistencies and MS failing to receive
paging messages properly.

This patch adds a warning and error logging and should be reverted
when initialisation is done in proper order.

Sponsored-by: On-Waves ehf
This commit is contained in:
Jacob Erlbeck 2014-02-21 15:09:13 +01:00 committed by Holger Hans Peter Freyther
parent d290ee029a
commit f550a6a574
1 changed files with 6 additions and 0 deletions

View File

@ -535,6 +535,12 @@ static int paging_signal_cbfn(unsigned int subsys, unsigned int signal, void *hd
struct paging_state *ps = btsb->paging_state;
struct gsm48_system_information_type_3 *si3 = (void *) bts->si_buf[SYSINFO_TYPE_3];
#warning "TODO: Remove this when setting u8NbrOfAgch is implemented properly"
if (si3->control_channel_desc.bs_ag_blks_res != 1)
LOGP(DPAG, LOGL_ERROR,
"Paging: BS_AG_BLKS_RES = %d != 1 not fully supported\n",
si3->control_channel_desc.bs_ag_blks_res);
paging_si_update(ps, &si3->control_channel_desc);
}
return 0;