aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/oml.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-03-26 18:00:40 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-03-26 18:01:55 +0100
commita276b9823627fcc3279bd005cc64f63edbeb4819 (patch)
tree174d5994b215275515088fcfb6b85c9dafcbe1a8 /src/common/oml.c
parent71d98050f38840f61d37ddb5f7e4efd5d5f0bab4 (diff)
oml: Indicate the kind of object passed as the void*
These routines do not pass the gsm_abis_mo and parsing the FOM header of the msg does not seem to be a good idea either. Pass in the OML object so that the model code can determine what the void pointer is.
Diffstat (limited to 'src/common/oml.c')
-rw-r--r--src/common/oml.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/oml.c b/src/common/oml.c
index 5fa2d852..9ec773b3 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -532,7 +532,7 @@ static int oml_rx_set_bts_attr(struct gsm_bts *bts, struct msgb *msg)
bts->bsic = *TLVP_VAL(&tp, NM_ATT_BSIC);
/* call into BTS driver to apply new attributes to hardware */
- return bts_model_apply_oml(bts, msg, tp_merged, bts);
+ return bts_model_apply_oml(bts, msg, tp_merged, NM_OC_BTS, bts);
}
/* 8.6.2 Set Radio Attributes has been received */
@@ -594,7 +594,7 @@ static int oml_rx_set_radio_attr(struct gsm_bts_trx *trx, struct msgb *msg)
trx->arfcn_num = 0;
#endif
/* call into BTS driver to apply new attributes to hardware */
- return bts_model_apply_oml(trx->bts, msg, tp_merged, trx);
+ return bts_model_apply_oml(trx->bts, msg, tp_merged, NM_OC_RADIO_CARRIER, trx);
}
static int conf_lchans_for_pchan(struct gsm_bts_trx_ts *ts)
@@ -704,7 +704,7 @@ static int oml_rx_set_chan_attr(struct gsm_bts_trx_ts *ts, struct msgb *msg)
gsm_abis_mo_name(&ts->mo), ts->tsc);
/* call into BTS driver to apply new attributes to hardware */
- return bts_model_apply_oml(bts, msg, tp_merged, ts);
+ return bts_model_apply_oml(bts, msg, tp_merged, NM_OC_CHANNEL, ts);
}
/* 8.9.2 Opstart has been received */