aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_init.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-03-22 11:48:36 +0800
committerHarald Welte <laforge@gnumonks.org>2010-03-22 19:02:04 +0800
commita5731cffc4b07a85a5a6c82cf6bc223baab7cd0c (patch)
treed83d094ba07e12cec883f5443c3bdec8f4f8974c /openbsc/src/bsc_init.c
parent94036700c1ba18de7f2d243e43f3470ebcd81e23 (diff)
GPRS: make NSEI configurable from VTY
Diffstat (limited to 'openbsc/src/bsc_init.c')
-rw-r--r--openbsc/src/bsc_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c
index 4b2a5e797..f3436621f 100644
--- a/openbsc/src/bsc_init.c
+++ b/openbsc/src/bsc_init.c
@@ -863,6 +863,10 @@ static void patch_nm_tables(struct gsm_bts *bts)
bs11_attr_radio[5] = bts->c0->max_power_red / 2;
nanobts_attr_radio[1] = bts->c0->max_power_red / 2;
+ /* patch NSEI */
+ nanobts_attr_nse[3] = bts->gprs.nse.nsei >> 8;
+ nanobts_attr_nse[4] = bts->gprs.nse.nsei & 0xff;
+
/* patch NSVCI */
nanobts_attr_nsvc0[3] = bts->gprs.nsvc[0].nsvci >> 8;
nanobts_attr_nsvc0[4] = bts->gprs.nsvc[0].nsvci & 0xff;