diff options
author | Max <msuraev@sysmocom.de> | 2016-11-11 15:51:23 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2016-11-11 15:52:49 +0100 |
commit | 66325aee71e23e01492935b6253031bcd7233aa4 (patch) | |
tree | 3f8ce43ec1871a663f5ef16145ed6ce83ede4281 /src/osmo-bts-trx | |
parent | bdf10eb70544855fb0425a38ac8d3232d8a5a214 (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-trx')
-rw-r--r-- | src/osmo-bts-trx/l1_if.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/osmo-bts-trx/l1_if.c b/src/osmo-bts-trx/l1_if.c index 4465f3b5..ea2088b7 100644 --- a/src/osmo-bts-trx/l1_if.c +++ b/src/osmo-bts-trx/l1_if.c @@ -591,9 +591,9 @@ int bts_model_l1sap_down(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap) break; } /* activate dedicated channel */ - trx_sched_set_lchan(&l1h->l1s, chan_nr, 0x00, 1); + trx_sched_set_lchan(&l1h->l1s, chan_nr, LID_DEDIC, 1); /* activate associated channel */ - trx_sched_set_lchan(&l1h->l1s, chan_nr, 0x40, 1); + trx_sched_set_lchan(&l1h->l1s, chan_nr, LID_SACCH, 1); /* set mode */ trx_sched_set_mode(&l1h->l1s, chan_nr, lchan->rsl_cmode, lchan->tch_mode, @@ -641,12 +641,12 @@ int bts_model_l1sap_down(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap) break; } /* deactivate associated channel */ - trx_sched_set_lchan(&l1h->l1s, chan_nr, 0x40, 0); + trx_sched_set_lchan(&l1h->l1s, chan_nr, LID_SACCH, 0); if (!l1sap->u.info.u.act_req.sacch_only) { /* set lchan inactive */ lchan_set_state(lchan, LCHAN_S_NONE); /* deactivate dedicated channel */ - trx_sched_set_lchan(&l1h->l1s, chan_nr, 0x00, 0); + trx_sched_set_lchan(&l1h->l1s, chan_nr, LID_DEDIC, 0); /* confirm only on dedicated channel */ mph_info_chan_confirm(l1h, chan_nr, PRIM_INFO_DEACTIVATE, 0); |