fix in activation of pucch_vars
This commit is contained in:
@@ -204,6 +204,7 @@ int8_t nr_ue_scheduled_response(nr_scheduled_response_t *scheduled_response){
|
|||||||
memcpy((void*)&(pucch_vars->pucch_pdu[j]), (void*)pucch_config_pdu, sizeof(fapi_nr_ul_config_pucch_pdu));
|
memcpy((void*)&(pucch_vars->pucch_pdu[j]), (void*)pucch_config_pdu, sizeof(fapi_nr_ul_config_pucch_pdu));
|
||||||
pucch_vars->active[j] = true;
|
pucch_vars->active[j] = true;
|
||||||
found = true;
|
found = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!found)
|
if (!found)
|
||||||
|
|||||||
@@ -321,6 +321,7 @@ void pucch_procedures_ue_nr(PHY_VARS_NR_UE *ue,
|
|||||||
|
|
||||||
for (int i=0; i<2; i++) {
|
for (int i=0; i<2; i++) {
|
||||||
if(pucch_vars->active[i]) {
|
if(pucch_vars->active[i]) {
|
||||||
|
|
||||||
pucch_pdu = &pucch_vars->pucch_pdu[i];
|
pucch_pdu = &pucch_vars->pucch_pdu[i];
|
||||||
uint16_t nb_of_prbs = pucch_pdu->prb_size;
|
uint16_t nb_of_prbs = pucch_pdu->prb_size;
|
||||||
/* Generate PUCCH signal according to its format and parameters */
|
/* Generate PUCCH signal according to its format and parameters */
|
||||||
@@ -350,6 +351,8 @@ void pucch_procedures_ue_nr(PHY_VARS_NR_UE *ue,
|
|||||||
tx_amp = AMP;
|
tx_amp = AMP;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
LOG_D(PHY,"Generation of PUCCH format %d at frame.slot %d.%d\n",pucch_pdu->format_type,proc->frame_tx,nr_slot_tx);
|
||||||
|
|
||||||
switch(pucch_pdu->format_type) {
|
switch(pucch_pdu->format_type) {
|
||||||
case 0:
|
case 0:
|
||||||
nr_generate_pucch0(ue,
|
nr_generate_pucch0(ue,
|
||||||
|
|||||||
Reference in New Issue
Block a user