aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/bts.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-06-28 08:59:48 +0200
committerHarald Welte <laforge@gnumonks.org>2012-06-28 08:59:48 +0200
commit6b561bb7ba5f10c5fd96542a7e42de2822352a67 (patch)
tree4228cfc681aedf404cd8f3a53221f6c1da444c9c /src/common/bts.c
parentfa8014f181aecdf5bef554af8fc1a3d56587d6b4 (diff)
Add 12.21 handling for GPRS NSE/NSVC/CELL MO
We now bring the GPRS related MO up in DEPENDENCY state and parse the various NS, BSSGP and RLC parameters as set by the BSC via 12.21/OML.
Diffstat (limited to 'src/common/bts.c')
-rw-r--r--src/common/bts.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/bts.c b/src/common/bts.c
index d28b4160..00ea7c75 100644
--- a/src/common/bts.c
+++ b/src/common/bts.c
@@ -73,6 +73,10 @@ int bts_init(struct gsm_bts *bts)
/* set BTS to dependency */
oml_mo_state_chg(&bts->mo, -1, NM_AVSTATE_DEPENDENCY);
+ oml_mo_state_chg(&bts->gprs.nse.mo, -1, NM_AVSTATE_DEPENDENCY);
+ oml_mo_state_chg(&bts->gprs.cell.mo, -1, NM_AVSTATE_DEPENDENCY);
+ oml_mo_state_chg(&bts->gprs.nsvc[0].mo, -1, NM_AVSTATE_DEPENDENCY);
+ oml_mo_state_chg(&bts->gprs.nsvc[1].mo, -1, NM_AVSTATE_DEPENDENCY);
/* initialize bts data structure */
llist_for_each_entry(trx, &bts->trx_list, list) {
@@ -137,6 +141,12 @@ int bts_link_estab(struct gsm_bts *bts)
oml_tx_state_changed(&bts->site_mgr.mo);
oml_tx_state_changed(&bts->mo);
+ /* those should all be in DEPENDENCY */
+ oml_tx_state_changed(&bts->gprs.nse.mo);
+ oml_tx_state_changed(&bts->gprs.cell.mo);
+ oml_tx_state_changed(&bts->gprs.nsvc[0].mo);
+ oml_tx_state_changed(&bts->gprs.nsvc[1].mo);
+
/* All other objects start off-line until the BTS Model code says otherwise */
for (i = 0; i < bts->num_trx; i++) {
struct gsm_bts_trx *trx = gsm_bts_trx_num(bts, i);