Commit 5aec9ab5 authored by Bo Zhao's avatar Bo Zhao Committed by cig

Solve the uninitialized conditional jump and invalid read/write errors from the valgrind log

parent 7ea60872
...@@ -2412,6 +2412,8 @@ void nr_ue_prach_procedures(PHY_VARS_NR_UE *ue,UE_nr_rxtx_proc_t *proc,uint8_t e ...@@ -2412,6 +2412,8 @@ void nr_ue_prach_procedures(PHY_VARS_NR_UE *ue,UE_nr_rxtx_proc_t *proc,uint8_t e
ue->prach_resources[eNB_id] = &prach_resources; ue->prach_resources[eNB_id] = &prach_resources;
ue->prach_resources[eNB_id]->ra_PreambleIndex = preamble_tx; ue->prach_resources[eNB_id]->ra_PreambleIndex = preamble_tx;
ue->prach_resources[eNB_id]->ra_TDD_map_index = 0; ue->prach_resources[eNB_id]->ra_TDD_map_index = 0;
ue->prach_resources[eNB_id]->ra_PREAMBLE_RECEIVED_TARGET_POWER = 10;
ue->prach_resources[eNB_id]->ra_RNTI = 93;
} }
if (ue->mac_enabled==1){ if (ue->mac_enabled==1){
......
...@@ -101,7 +101,7 @@ int main(int argc, char **argv) ...@@ -101,7 +101,7 @@ int main(int argc, char **argv)
uint8_t hs_flag=0; uint8_t hs_flag=0;
int n_frames=1; int n_frames=1;
channel_desc_t *UE2gNB; channel_desc_t *UE2gNB;
uint32_t nsymb,tx_lev; //,tx_lev_dB; uint32_t nsymb,tx_lev=10000; //,tx_lev_dB;
// int8_t interf1=-19,interf2=-19; // int8_t interf1=-19,interf2=-19;
NR_DL_FRAME_PARMS *frame_parms; NR_DL_FRAME_PARMS *frame_parms;
...@@ -613,7 +613,7 @@ int main(int argc, char **argv) ...@@ -613,7 +613,7 @@ int main(int argc, char **argv)
LOG_M("prach0.m","prach0", &txdata[0][subframe*frame_parms->samples_per_slot<<1],frame_parms->samples_per_slot<<1,1,1); LOG_M("prach0.m","prach0", &txdata[0][subframe*frame_parms->samples_per_slot<<1],frame_parms->samples_per_slot<<1,1,1);
LOG_M("prachF0.m","prachF0", &gNB->prach_vars.prachF[0],24576,1,1); LOG_M("prachF0.m","prachF0", &gNB->prach_vars.prachF[0],1024,1,1);
LOG_M("rxsig0.m","rxs0", LOG_M("rxsig0.m","rxs0",
&gNB->common_vars.rxdata[0][subframe*frame_parms->samples_per_slot<<1], &gNB->common_vars.rxdata[0][subframe*frame_parms->samples_per_slot<<1],
frame_parms->samples_per_slot<<1,1,1); frame_parms->samples_per_slot<<1,1,1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment