Removed "ptrs_configured" and using "pusch_pdu->pdu_bit_map" instead at UE side
This commit is contained in:
@@ -745,8 +745,6 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue,
|
||||
/////////////////////////PUSCH PTRS init/////////////////////////
|
||||
///////////
|
||||
|
||||
ue->ptrs_configured = 0; // flag to be toggled by RCC
|
||||
|
||||
//------------- config PTRS parameters--------------//
|
||||
// ptrs_Uplink_Config->timeDensity.ptrs_mcs1 = 2; // setting MCS values to 0 indicate abscence of time_density field in the configuration
|
||||
// ptrs_Uplink_Config->timeDensity.ptrs_mcs2 = 4;
|
||||
|
||||
@@ -282,7 +282,7 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
|
||||
int16_t mod_ptrs[(nb_rb/2)*(NR_SYMBOLS_PER_SLOT-1)*2]; // assume maximum number of PTRS per pusch allocation
|
||||
K_ptrs = 0; // just to avoid a warning
|
||||
|
||||
if (UE->ptrs_configured == 1) {
|
||||
if ((harq_process_ul_ue->pusch_pdu.pdu_bit_map >> 2) & 0x01) {
|
||||
|
||||
K_ptrs = (harq_process_ul_ue->pusch_pdu.pusch_ptrs.ptrs_freq_density)?4:2;
|
||||
L_ptrs = 1<<harq_process_ul_ue->pusch_pdu.pusch_ptrs.ptrs_time_density;
|
||||
@@ -394,7 +394,7 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
|
||||
is_dmrs = 1;
|
||||
}
|
||||
|
||||
if (UE->ptrs_configured == 1){
|
||||
if ((harq_process_ul_ue->pusch_pdu.pdu_bit_map >> 2) & 0x01){
|
||||
|
||||
if(k < start_sc)
|
||||
k_temp = k + frame_parms->ofdm_symbol_size;
|
||||
|
||||
@@ -954,9 +954,6 @@ typedef struct {
|
||||
/// PUSCH DMRS sequence
|
||||
uint32_t ****nr_gold_pusch_dmrs;
|
||||
|
||||
/// flag to indicate if PTRS is configured
|
||||
uint8_t ptrs_configured;
|
||||
|
||||
uint32_t X_u[64][839];
|
||||
|
||||
uint32_t high_speed_flag;
|
||||
|
||||
Reference in New Issue
Block a user