aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-02-21 15:09:13 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-02-24 12:55:38 +0100
commitf550a6a5748280e9c9841e7a56a0c99b022d84a8 (patch)
tree8d86ac8d9bc25167e10a0c70ea1fbc600a5d58b1 /src/common
parentd290ee029a827c870f97372b98f0dbd7d057402a (diff)
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
Diffstat (limited to 'src/common')
-rw-r--r--src/common/paging.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/paging.c b/src/common/paging.c
index cd1c370d..7c71c6f8 100644
--- a/src/common/paging.c
+++ b/src/common/paging.c
@@ -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;