diff options
author | Holger Freyther <zecke@selfish.org> | 2009-02-04 00:04:52 +0000 |
---|---|---|
committer | Holger Freyther <zecke@selfish.org> | 2009-02-04 00:04:52 +0000 |
commit | 1adb4ff0022116a989c059b1131f2ce0a7f0fd12 (patch) | |
tree | d10ae0294d18bb9d723735a4c7914a619a704cc0 /src | |
parent | b01554493f3154ea90b275ce5706392c5c232248 (diff) |
[paging] Keep a copy of the Control Channel Description in the bts struct
- Initialize Control Channel Description of SI3
- Patch the table
- Setting ATT now is easy
- Paging can now extract all required information... to determine
the right paging group.
Diffstat (limited to 'src')
-rw-r--r-- | src/bsc_hack.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bsc_hack.c b/src/bsc_hack.c index db8a68345..8d02d8939 100644 --- a/src/bsc_hack.c +++ b/src/bsc_hack.c @@ -642,6 +642,9 @@ static void patch_tables(struct gsm_bts *bts) type_4->data[2] &= 0xf0; type_4->data[2] |= arfcn_high; type_4->data[3] = arfcn_low; + + /* patch Control Channel Description 10.5.2.11 */ + type_3->control_channel_desc = bts->chan_desc; } @@ -681,6 +684,14 @@ static int bootstrap_network(void) bts = &gsmnet->bts[0]; bts->location_area_code = 1; bts->trx[0].arfcn = ARFCN; + + /* Control Channel Description */ + memset(&bts->chan_desc, 0, sizeof(struct gsm48_control_channel_descr)); + bts->chan_desc.att = 0; + bts->chan_desc.ccch_conf = RSL_BCCH_CCCH_CONF_1_C; + bts->chan_desc.bs_pa_mfrms = RSL_BS_PA_MFRMS_5; + bts->chan_desc.t3212 = 0; + patch_tables(bts); paging_bts = page_allocate(bts); |