diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-08-21 14:44:12 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-09-28 06:04:40 +0200 |
commit | c4a49e3e2dca893e52f9432b378fae645386575e (patch) | |
tree | c667aae42aaad34ae75e5109f98cdfdcc4deed35 /openbsc/src/bsc_init.c | |
parent | 98dd1c85ab1438a2e3f85811595e6589800e5396 (diff) |
[bsc] Store the cell_identity in gsm_bts and set it on the SI3 and SI6
Transfering the cell_identity from BSC to MSC is required for the
on-waves.com support. Allow to set the cell_identity in the cfg
file and patch the system information tables to set it.
Diffstat (limited to 'openbsc/src/bsc_init.c')
-rw-r--r-- | openbsc/src/bsc_init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c index 9fff4feed..c626415d3 100644 --- a/openbsc/src/bsc_init.c +++ b/openbsc/src/bsc_init.c @@ -916,6 +916,10 @@ static void patch_si_tables(struct gsm_bts *bts) type_4->lai = lai; type_6->lai = lai; + /* set the CI */ + type_3->cell_identity = htons(bts->cell_identity); + type_6->cell_identity = htons(bts->cell_identity); + type_4->data[2] &= 0xf0; type_4->data[2] |= arfcn_high; type_4->data[3] = arfcn_low; |