SRSUE: NR worker reset Tx buffer and PUSCH data payload bytes from 0 to 255

This commit is contained in:
Xavier Arteaga 2021-02-05 09:51:12 +01:00 committed by Xavier Arteaga
parent a19671802e
commit aef0397658
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,7 @@ cc_worker::cc_worker(uint32_t cc_idx_, srslog::basic_logger& log, state* phy_sta
// Initialise data with numbers
tx_data.resize(SRSLTE_SCH_NR_MAX_NOF_CB_LDPC * SRSLTE_LDPC_MAX_LEN_ENCODED_CB / 8);
for (uint32_t i = 0; i < SRSLTE_SCH_NR_MAX_NOF_CB_LDPC * SRSLTE_LDPC_MAX_LEN_ENCODED_CB / 8; i++) {
tx_data[i] = i % 8;
tx_data[i] = i % 255U;
}
}
@ -263,6 +263,7 @@ bool cc_worker::work_ul()
// Notify MAC about PUSCH found grant
// ...
srslte_softbuffer_tx_reset(&softbuffer_tx);
pusch_cfg.grant.tb[0].softbuffer.tx = &softbuffer_tx;
// Encode PUSCH transmission