From a276b9823627fcc3279bd005cc64f63edbeb4819 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 26 Mar 2014 18:00:40 +0100 Subject: 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. --- src/common/oml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/common') 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 */ -- cgit v1.2.3