summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/abis_om2000.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-09-07 19:09:46 +0200
committerHarald Welte <laforge@gnumonks.org>2012-09-07 19:10:47 +0200
commit0818f3114492b2371eeab9f82da542f7aeff8f57 (patch)
treebae43e473298d95fa9929b331f2107aec1a1e4bc /openbsc/src/libbsc/abis_om2000.c
parent240a828ffd3ec17cfe0e2aceaa564a99b06006fc (diff)
OM2000: make sure to route messages to IXU/DXU over BTS oml link
Messages to CF and other core objects need to go to the BTS (IXU/DXU) OML link, not to the OML link of the primary TRX!
Diffstat (limited to 'openbsc/src/libbsc/abis_om2000.c')
-rw-r--r--openbsc/src/libbsc/abis_om2000.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/libbsc/abis_om2000.c b/openbsc/src/libbsc/abis_om2000.c
index 1183895..716f17b 100644
--- a/openbsc/src/libbsc/abis_om2000.c
+++ b/openbsc/src/libbsc/abis_om2000.c
@@ -822,6 +822,7 @@ static int abis_om2k_sendmsg(struct gsm_bts *bts, struct msgb *msg)
"non-existing TRX\n", om2k_mo_name(&o2h->mo));
return -ENODEV;
}
+ msg->dst = trx->oml_link;
break;
case OM2K_MO_CLS_TS:
/* Route through per-TRX OML Link to the appropriate TRX */
@@ -831,13 +832,13 @@ static int abis_om2k_sendmsg(struct gsm_bts *bts, struct msgb *msg)
"non-existing TRX\n", om2k_mo_name(&o2h->mo));
return -ENODEV;
}
+ msg->dst = trx->oml_link;
break;
default:
/* Route through the IXU/DXU OML Link */
- trx = bts->c0;
+ msg->dst = bts->oml_link;
break;
}
- msg->dst = trx->oml_link;
return _abis_nm_sendmsg(msg);
}