diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-10-05 23:45:31 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-11-23 17:42:45 +0700 |
commit | ffebd244567196c248d31f37241c82d18cb96ac1 (patch) | |
tree | 3343de26bc8401f08f94be8125213f2853c290c2 /src/osmo-bts-litecell15 | |
parent | 17954da56c2642229068da93b00b92a30e7a7be3 (diff) |
PTCCH: properly handle RACH.ind for PCU_IF_SAPI_PTCCH
Change-Id: I482d60a46b9d253dfe0b16140eac9fea6420b30c
Related: OS#1545
Diffstat (limited to 'src/osmo-bts-litecell15')
-rw-r--r-- | src/osmo-bts-litecell15/lc15_l1_if.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/osmo-bts-litecell15/lc15_l1_if.c b/src/osmo-bts-litecell15/lc15_l1_if.c index 670263fc..24eb0faf 100644 --- a/src/osmo-bts-litecell15/lc15_l1_if.c +++ b/src/osmo-bts-litecell15/lc15_l1_if.c @@ -223,10 +223,6 @@ static int handle_ph_data_ind(struct lc15l1_hdl *fl1h, data_ind->u32Fn, &meas); break; - case GsmL1_Sapi_Ptcch: - // FIXME - rc = -1; - break; default: LOGP(DL1IF, LOGL_NOTICE, "Rx PH-DATA.ind for unknown L1 SAPI %s\n", get_value_string(lc15bts_l1sapi_names, data_ind->sapi)); @@ -251,8 +247,21 @@ static int handle_ph_ra_ind(struct lc15l1_hdl *fl1h, GsmL1_PhRaInd_t *ra_ind) return 0; DEBUGP(DL1IF, "Rx PH-RA.ind"); - bts_update_tbf_ta("PH-RA", ra_ind->u32Fn, fl1h->trx_no, ra_ind->u8Tn, - qta2ta(ra_ind->measParam.i16BurstTiming), true); + + switch (ra_ind->sapi) { + case GsmL1_Sapi_Pdtch: + bts_update_tbf_ta("PH-RA", ra_ind->u32Fn, fl1h->trx_no, ra_ind->u8Tn, + qta2ta(ra_ind->measParam.i16BurstTiming), true); + break; + case GsmL1_Sapi_Ptcch: + pcu_rx_rach_ind_pdtch(fl1h->trx_no, ra_ind->u8Tn, ra_ind->u32Fn, + ra_ind->measParam.i16BurstTiming); + break; + default: + LOGP(DL1IF, LOGL_NOTICE, "Rx PH-RA.ind for unknown L1 SAPI %s\n", + get_value_string(lc15bts_l1sapi_names, ra_ind->sapi)); + return -ENOTSUP; + } return 0; } |