From 08c508f84a8d088f8454d0f21f83ecc22e30d72d Mon Sep 17 00:00:00 2001 From: Alexander Chemeris Date: Thu, 20 Aug 2015 20:48:39 -0400 Subject: msc: Add channel information to the meas_feed, bump version to v1. --- openbsc/src/libmsc/meas_feed.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'openbsc/src') diff --git a/openbsc/src/libmsc/meas_feed.c b/openbsc/src/libmsc/meas_feed.c index 5fc7c4979..cd2b64842 100644 --- a/openbsc/src/libmsc/meas_feed.c +++ b/openbsc/src/libmsc/meas_feed.c @@ -62,6 +62,15 @@ static int process_meas_rep(struct gsm_meas_rep *mr) /* copy the entire measurement report */ memcpy(&mfm->mr, mr, sizeof(mfm->mr)); + /* copy channel information */ + /* we assume that the measurement report always belong to some timeslot */ + mfm->lchan_type = (uint8_t)mr->lchan->type; + mfm->pchan_type = (uint8_t)mr->lchan->ts->pchan; + mfm->bts_nr = mr->lchan->ts->trx->bts->nr; + mfm->trx_nr = mr->lchan->ts->trx->nr; + mfm->ts_nr = mr->lchan->ts->nr; + mfm->ss_nr = mr->lchan->nr; + /* and send it to the socket */ if (osmo_wqueue_enqueue(&g_mfs.wqueue, msg) != 0) msgb_free(msg); -- cgit v1.2.3