diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-10-09 04:19:10 +0700 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2019-10-09 16:45:48 +0000 |
commit | 43a8ed2b55126839b2c6b9541cf842895d7d396a (patch) | |
tree | bfe75e442987c39e712c6d1d4b339fbe1bff2178 /src/common/l1sap.c | |
parent | d8284eec632533679ca002526c55140a6fc3b7e1 (diff) |
L1SAP: use the actual ARFCN for outgoing PCUIF messages
Change-Id: I07b3aac97603d85fb6cf077d3a342b12b0643171
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r-- | src/common/l1sap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c index 67d569b8..0696fab7 100644 --- a/src/common/l1sap.c +++ b/src/common/l1sap.c @@ -802,10 +802,10 @@ static int l1sap_ph_rts_ind(struct gsm_bts_trx *trx, } else { /* forward RTS.ind to PCU */ if (L1SAP_IS_PTCCH(rts_ind->fn)) { - pcu_tx_rts_req(&trx->ts[tn], 1, fn, 1 /* ARFCN */, + pcu_tx_rts_req(&trx->ts[tn], 1, fn, trx->arfcn, L1SAP_FN2PTCCHBLOCK(fn)); } else { - pcu_tx_rts_req(&trx->ts[tn], 0, fn, 0 /* ARFCN */, + pcu_tx_rts_req(&trx->ts[tn], 0, fn, trx->arfcn, L1SAP_FN2MACBLOCK(fn)); } /* return early, PCU takes care of rest */ @@ -1135,7 +1135,7 @@ static int l1sap_ph_data_ind(struct gsm_bts_trx *trx, return -EINVAL; if (L1SAP_IS_PTCCH(fn)) { pcu_tx_data_ind(&trx->ts[tn], PCU_IF_SAPI_PTCCH, fn, - 0 /* ARFCN */, L1SAP_FN2PTCCHBLOCK(fn), + trx->arfcn, L1SAP_FN2PTCCHBLOCK(fn), data, len, rssi, data_ind->ber10k, data_ind->ta_offs_256bits/64, data_ind->lqual_cb); @@ -1144,7 +1144,7 @@ static int l1sap_ph_data_ind(struct gsm_bts_trx *trx, if (pr_info != PRES_INFO_BOTH) return 0; /* PDTCH / PACCH frame handling */ - pcu_tx_data_ind(&trx->ts[tn], PCU_IF_SAPI_PDTCH, fn, 0 /* ARFCN */, + pcu_tx_data_ind(&trx->ts[tn], PCU_IF_SAPI_PDTCH, fn, trx->arfcn, L1SAP_FN2MACBLOCK(fn), data, len, rssi, data_ind->ber10k, data_ind->ta_offs_256bits/64, data_ind->lqual_cb); } |