From 66325aee71e23e01492935b6253031bcd7233aa4 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 11 Nov 2016 15:51:23 +0100 Subject: Replace link_id constant with define Instead of using constant for link_id directly, use shared define value. Change-Id: Ibf3d439d8893bd994ba089796175b6c635db2cf8 --- src/osmo-bts-sysmo/l1_if.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/osmo-bts-sysmo') diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c index d14eac4a..61ffe395 100644 --- a/src/osmo-bts-sysmo/l1_if.c +++ b/src/osmo-bts-sysmo/l1_if.c @@ -783,9 +783,9 @@ static int handle_ph_readytosend_ind(struct femtol1_hdl *fl1, if (chan_nr) { fn = rts_ind->u32Fn; if (rts_ind->sapi == GsmL1_Sapi_Sacch) - link_id = 0x40; + link_id = LID_SACCH; else - link_id = 0; + link_id = LID_DEDIC; /* recycle the msgb and use it for the L1 primitive, * which means that we (or our caller) must not free it */ rc = msgb_trim(l1p_msg, sizeof(*l1sap)); @@ -911,7 +911,7 @@ static int handle_ph_data_ind(struct femtol1_hdl *fl1, GsmL1_PhDataInd_t *data_i return ENOTSUP; } fn = data_ind->u32Fn; - link_id = (data_ind->sapi == GsmL1_Sapi_Sacch) ? 0x40 : 0x00; + link_id = (data_ind->sapi == GsmL1_Sapi_Sacch) ? LID_SACCH : LID_DEDIC; process_meas_res(trx, chan_nr, &data_ind->measParam); -- cgit v1.2.3