ip.access / multi-TRX: correctly identify TRX number on SW ACT REP

This commit is contained in:
Harald Welte 2009-10-19 21:47:54 +02:00
parent af7b2faf71
commit d004a6462a
1 changed files with 5 additions and 1 deletions

View File

@ -405,7 +405,11 @@ int nm_state_event(enum nm_evt evt, u_int8_t obj_class, void *obj,
static int sw_activ_rep(struct msgb *mb)
{
struct abis_om_fom_hdr *foh = msgb_l3(mb);
struct gsm_bts_trx *trx = mb->trx;
struct gsm_bts *bts = mb->trx->bts;
struct gsm_bts_trx *trx = gsm_bts_trx_num(bts, foh->obj_inst.trx_nr);
if (!trx)
return -ENODEV;
switch (foh->obj_class) {
case NM_OC_BASEB_TRANSC: