Merge remote-tracking branch 'origin/nr-ue-fixes' into integration_2022_wk11
This commit is contained in:
@@ -86,16 +86,17 @@ void nr_rf_card_config_freq(openair0_config_t *openair0_cfg,
|
|||||||
uint8_t cc_id = 0;
|
uint8_t cc_id = 0;
|
||||||
PHY_VARS_NR_UE *ue = PHY_vars_UE_g[mod_id][cc_id];
|
PHY_VARS_NR_UE *ue = PHY_vars_UE_g[mod_id][cc_id];
|
||||||
int rf_chain = ue->rf_map.chain;
|
int rf_chain = ue->rf_map.chain;
|
||||||
|
double freq_scale = (double)(dl_carrier + freq_offset) / dl_carrier;
|
||||||
|
|
||||||
for (int i = rf_chain; i < rf_chain + 4; i++) {
|
for (int i = rf_chain; i < rf_chain + 4; i++) {
|
||||||
|
|
||||||
if (i < openair0_cfg->rx_num_channels)
|
if (i < openair0_cfg->rx_num_channels)
|
||||||
openair0_cfg->rx_freq[i + rf_chain] = dl_carrier + freq_offset;
|
openair0_cfg->rx_freq[i + rf_chain] = dl_carrier * freq_scale;
|
||||||
else
|
else
|
||||||
openair0_cfg->rx_freq[i] = 0.0;
|
openair0_cfg->rx_freq[i] = 0.0;
|
||||||
|
|
||||||
if (i<openair0_cfg->tx_num_channels)
|
if (i<openair0_cfg->tx_num_channels)
|
||||||
openair0_cfg->tx_freq[i] = ul_carrier + freq_offset;
|
openair0_cfg->tx_freq[i] = ul_carrier * freq_scale;
|
||||||
else
|
else
|
||||||
openair0_cfg->tx_freq[i] = 0.0;
|
openair0_cfg->tx_freq[i] = 0.0;
|
||||||
|
|
||||||
|
|||||||
@@ -368,7 +368,6 @@ int8_t nr_ue_scheduled_response(nr_scheduled_response_t *scheduled_response){
|
|||||||
pusch_config_pdu = &ul_config->ul_config_list[i].pusch_config_pdu;
|
pusch_config_pdu = &ul_config->ul_config_list[i].pusch_config_pdu;
|
||||||
current_harq_pid = pusch_config_pdu->pusch_data.harq_process_id;
|
current_harq_pid = pusch_config_pdu->pusch_data.harq_process_id;
|
||||||
NR_UL_UE_HARQ_t *harq_process_ul_ue = ulsch->harq_processes[current_harq_pid];
|
NR_UL_UE_HARQ_t *harq_process_ul_ue = ulsch->harq_processes[current_harq_pid];
|
||||||
harq_process_ul_ue->status = 0;
|
|
||||||
|
|
||||||
if (harq_process_ul_ue){
|
if (harq_process_ul_ue){
|
||||||
|
|
||||||
@@ -384,15 +383,16 @@ int8_t nr_ue_scheduled_response(nr_scheduled_response_t *scheduled_response){
|
|||||||
if ((tx_req_body->pdu_index == i) && (tx_req_body->pdu_length > 0)) {
|
if ((tx_req_body->pdu_index == i) && (tx_req_body->pdu_length > 0)) {
|
||||||
LOG_D(PHY,"%d.%d Copying %d bytes to harq_process_ul_ue->a (harq_pid %d)\n",scheduled_response->frame,slot,tx_req_body->pdu_length,current_harq_pid);
|
LOG_D(PHY,"%d.%d Copying %d bytes to harq_process_ul_ue->a (harq_pid %d)\n",scheduled_response->frame,slot,tx_req_body->pdu_length,current_harq_pid);
|
||||||
memcpy(harq_process_ul_ue->a, tx_req_body->pdu, tx_req_body->pdu_length);
|
memcpy(harq_process_ul_ue->a, tx_req_body->pdu, tx_req_body->pdu_length);
|
||||||
harq_process_ul_ue->status = ACTIVE;
|
|
||||||
ul_config->ul_config_list[i].pdu_type = FAPI_NR_UL_CONFIG_TYPE_DONE; // not handle it any more
|
|
||||||
pdu_done++;
|
|
||||||
LOG_D(PHY, "%d.%d ul A ul_config %p t %d pdu_done %d number_pdus %d\n", scheduled_response->frame, slot, ul_config, pdu_type, pdu_done, ul_config->number_pdus);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
harq_process_ul_ue->status = ACTIVE;
|
||||||
|
ul_config->ul_config_list[i].pdu_type = FAPI_NR_UL_CONFIG_TYPE_DONE; // not handle it any more
|
||||||
|
pdu_done++;
|
||||||
|
LOG_D(PHY, "%d.%d ul A ul_config %p t %d pdu_done %d number_pdus %d\n", scheduled_response->frame, slot, ul_config, pdu_type, pdu_done, ul_config->number_pdus);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
LOG_E(PHY, "[phy_procedures_nrUE_TX] harq_process_ul_ue is NULL !!\n");
|
LOG_E(PHY, "[phy_procedures_nrUE_TX] harq_process_ul_ue is NULL !!\n");
|
||||||
|
|||||||
@@ -1119,7 +1119,7 @@ NR_UE_L2_STATE_t nr_ue_scheduler(nr_downlink_indication_t *dl_info, nr_uplink_in
|
|||||||
tx_req.number_of_pdus = 0;
|
tx_req.number_of_pdus = 0;
|
||||||
|
|
||||||
for (int j = 0; j < ul_config->number_pdus; j++) {
|
for (int j = 0; j < ul_config->number_pdus; j++) {
|
||||||
uint8_t *ulsch_input_buffer = &(ulsch_input_buffer_array[tx_req.number_of_pdus][MAX_ULSCH_PAYLOAD_BYTES]);
|
uint8_t *ulsch_input_buffer = ulsch_input_buffer_array[tx_req.number_of_pdus];
|
||||||
|
|
||||||
fapi_nr_ul_config_request_pdu_t *ulcfg_pdu = &ul_config->ul_config_list[j];
|
fapi_nr_ul_config_request_pdu_t *ulcfg_pdu = &ul_config->ul_config_list[j];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user