aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-11-15 22:09:08 +0100
committerHarald Welte <laforge@gnumonks.org>2017-02-01 16:36:11 +0000
commit2d02775b919d4d56b960cd76b792db95aee539dc (patch)
tree35ab543b6459f7980693519b69096a74f5d9f9c5 /openbsc/src/libbsc
parent725f3f1de0bb71cb743e5af00d6d56549fc5f692 (diff)
OM2000: use assoc_so *only* for TS objects
all other objects always use the MO instance. The existing code likely is due to copy+paste mistakes. Change-Id: Ie0a31cd93993da10f31eecf530a5a05773c11eb1
Diffstat (limited to 'openbsc/src/libbsc')
-rw-r--r--openbsc/src/libbsc/abis_om2000.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/libbsc/abis_om2000.c b/openbsc/src/libbsc/abis_om2000.c
index 6b334d4e..6c987d8d 100644
--- a/openbsc/src/libbsc/abis_om2000.c
+++ b/openbsc/src/libbsc/abis_om2000.c
@@ -803,7 +803,7 @@ mo2nm_state(struct gsm_bts *bts, const struct abis_om2k_mo *mo)
switch (mo->class) {
case OM2K_MO_CLS_TRXC:
- trx = gsm_bts_trx_num(bts, mo->assoc_so);
+ trx = gsm_bts_trx_num(bts, mo->inst);
if (!trx)
return NULL;
nm_state = &trx->mo.nm_state;
@@ -832,12 +832,12 @@ mo2nm_state(struct gsm_bts *bts, const struct abis_om2k_mo *mo)
nm_state = &bts->mo.nm_state;
break;
case OM2K_MO_CLS_TX:
- trx = gsm_bts_trx_num(bts, mo->assoc_so);
+ trx = gsm_bts_trx_num(bts, mo->inst);
if (!trx)
return NULL;
break;
case OM2K_MO_CLS_RX:
- trx = gsm_bts_trx_num(bts, mo->assoc_so);
+ trx = gsm_bts_trx_num(bts, mo->inst);
if (!trx)
return NULL;
break;
@@ -854,7 +854,7 @@ static void *mo2obj(struct gsm_bts *bts, struct abis_om2k_mo *mo)
case OM2K_MO_CLS_TX:
case OM2K_MO_CLS_RX:
case OM2K_MO_CLS_TRXC:
- return gsm_bts_trx_num(bts, mo->assoc_so);
+ return gsm_bts_trx_num(bts, mo->inst);
case OM2K_MO_CLS_TS:
trx = gsm_bts_trx_num(bts, mo->assoc_so);
if (!trx)