npdsch: use r14 bcch sequence when encoding SIB

master
Andre Puschmann 5 years ago
parent 2c6a95c1d5
commit 92fb6a94f4

@ -570,8 +570,14 @@ int srslte_npdsch_encode_rnti(srslte_npdsch_t* q,
cf_t* sf_symbols[SRSLTE_MAX_PORTS])
{
if (rnti != q->rnti) {
srslte_sequence_t seq;
// TODO: skip sequence init if cfg->is_encoded==true
srslte_sequence_t seq;
if (q->cell.is_r14 && rnti == SRSLTE_SIRNTI) {
if (srslte_sequence_npdsch_bcch_r14(
&seq, cfg->grant.start_sfn, q->cell.n_id_ncell, cfg->grant.nof_sf * cfg->nbits.nof_bits)) {
return SRSLTE_ERROR;
}
} else {
if (srslte_sequence_npdsch(&seq,
rnti,
0,
@ -581,6 +587,7 @@ int srslte_npdsch_encode_rnti(srslte_npdsch_t* q,
cfg->nbits.nof_bits * cfg->grant.nof_sf)) {
return SRSLTE_ERROR;
}
}
int r = srslte_npdsch_encode_seq(q, cfg, softbuffer, data, &seq, sf_symbols);
srslte_sequence_free(&seq);
return r;

Loading…
Cancel
Save