minor memcpy/memset fix
This commit is contained in:
@@ -101,8 +101,7 @@ void nr_feptx_ofdm_2thread(RU_t *ru) {
|
|||||||
// this copy should be done in the precoding thread (currently inactive)
|
// this copy should be done in the precoding thread (currently inactive)
|
||||||
for (int aa=0;aa<ru->nb_tx;aa++)
|
for (int aa=0;aa<ru->nb_tx;aa++)
|
||||||
memcpy((void*)ru->common.txdataF_BF[aa],
|
memcpy((void*)ru->common.txdataF_BF[aa],
|
||||||
(void*)&ru->gNB_list[0]->common_vars.txdataF[aa][subframe*fp->samples_per_subframe_wCP],
|
(void*)ru->gNB_list[0]->common_vars.txdataF[aa], fp->samples_per_subframe_wCP*sizeof(int32_t));
|
||||||
fp->samples_per_subframe_wCP*sizeof(int32_t));
|
|
||||||
|
|
||||||
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_RU_FEPTX_OFDM , 1 );
|
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_RU_FEPTX_OFDM , 1 );
|
||||||
|
|
||||||
|
|||||||
@@ -170,8 +170,7 @@ void phy_procedures_gNB_TX(PHY_VARS_gNB *gNB,
|
|||||||
|
|
||||||
// clear the transmit data array for the current subframe
|
// clear the transmit data array for the current subframe
|
||||||
for (aa=0; aa<cfg->rf_config.tx_antenna_ports.value; aa++) {
|
for (aa=0; aa<cfg->rf_config.tx_antenna_ports.value; aa++) {
|
||||||
memset(&gNB->common_vars.txdataF[aa][subframe*fp->samples_per_subframe_wCP],
|
memset(gNB->common_vars.txdataF[aa],0,fp->samples_per_subframe_wCP*sizeof(int32_t));
|
||||||
0,fp->samples_per_subframe_wCP*sizeof(int32_t));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nfapi_mode == 0 || nfapi_mode == 1) {
|
if (nfapi_mode == 0 || nfapi_mode == 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user