aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/l1_if.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-11-11 15:51:23 +0100
committerMax <msuraev@sysmocom.de>2016-11-11 15:52:49 +0100
commit66325aee71e23e01492935b6253031bcd7233aa4 (patch)
tree3f8ce43ec1871a663f5ef16145ed6ce83ede4281 /src/osmo-bts-sysmo/l1_if.c
parentbdf10eb70544855fb0425a38ac8d3232d8a5a214 (diff)
Replace link_id constant with define
Instead of using constant for link_id directly, use shared define value. Change-Id: Ibf3d439d8893bd994ba089796175b6c635db2cf8
Diffstat (limited to 'src/osmo-bts-sysmo/l1_if.c')
-rw-r--r--src/osmo-bts-sysmo/l1_if.c6
1 files changed, 3 insertions, 3 deletions
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);