Merge remote-tracking branch 'origin/fix-ue-scheduler-stack-copy' into integration_2024_w04
This commit is contained in:
@@ -874,24 +874,9 @@ int main(int argc, char **argv)
|
||||
UE_mac->state = UE_CONNECTED;
|
||||
UE_mac->ra.ra_state = RA_SUCCEEDED;
|
||||
|
||||
nr_dcireq_t dcireq;
|
||||
nr_scheduled_response_t scheduled_response;
|
||||
nr_phy_data_t phy_data = {0};
|
||||
|
||||
memset((void*)&dcireq,0,sizeof(dcireq));
|
||||
memset((void*)&scheduled_response,0,sizeof(scheduled_response));
|
||||
dcireq.module_id = 0;
|
||||
dcireq.gNB_index = 0;
|
||||
dcireq.cc_id = 0;
|
||||
|
||||
scheduled_response.dl_config = &dcireq.dl_config_req;
|
||||
scheduled_response.ul_config = &dcireq.ul_config_req;
|
||||
scheduled_response.tx_request = NULL;
|
||||
scheduled_response.module_id = 0;
|
||||
scheduled_response.CC_id = 0;
|
||||
scheduled_response.frame = frame;
|
||||
scheduled_response.slot = slot;
|
||||
scheduled_response.phy_data = &phy_data;
|
||||
fapi_nr_dl_config_request_t dl_config = {.sfn = frame, .slot = slot};
|
||||
nr_scheduled_response_t scheduled_response = {.dl_config = &dl_config, .phy_data = &phy_data, .mac = UE_mac};
|
||||
|
||||
nr_ue_phy_config_request(&UE_mac->phy_config);
|
||||
//NR_COMMON_channels_t *cc = RC.nrmac[0]->common_channels;
|
||||
@@ -976,9 +961,6 @@ int main(int argc, char **argv)
|
||||
UE_proc.frame_rx = frame;
|
||||
UE_proc.nr_slot_rx = slot;
|
||||
UE_proc.gNB_id = 0;
|
||||
|
||||
dcireq.frame = frame;
|
||||
dcireq.slot = slot;
|
||||
|
||||
NR_UE_DLSCH_t *dlsch0 = &phy_data.dlsch[0];
|
||||
|
||||
@@ -1114,8 +1096,9 @@ int main(int argc, char **argv)
|
||||
// Apply MIMO Channel
|
||||
multipath_channel(gNB2UE, s_re, s_im, r_re, r_im, slot_length, 0, (n_trials == 1) ? 1 : 0);
|
||||
add_noise(UE->common_vars.rxdata, (const double **) r_re, (const double **) r_im, sigma2, slot_length, slot_offset, ts, delay, pdu_bit_map, 0x1, frame_parms->nb_antennas_rx);
|
||||
|
||||
nr_ue_dcireq(&dcireq); //to be replaced with function pointer later
|
||||
dl_config.sfn = frame;
|
||||
dl_config.slot = slot;
|
||||
ue_dci_configuration(UE_mac, &dl_config, frame, slot);
|
||||
nr_ue_scheduled_response(&scheduled_response);
|
||||
|
||||
pbch_pdcch_processing(UE,
|
||||
|
||||
@@ -718,9 +718,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
uint32_t errors_decoding = 0;
|
||||
|
||||
nr_scheduled_response_t scheduled_response={0};
|
||||
fapi_nr_ul_config_request_t ul_config={0};
|
||||
fapi_nr_tx_request_t tx_req={0};
|
||||
fapi_nr_ul_config_request_t ul_config = {0};
|
||||
|
||||
uint8_t ptrs_mcs1 = 2;
|
||||
uint8_t ptrs_mcs2 = 4;
|
||||
@@ -1073,24 +1071,7 @@ int main(int argc, char *argv[])
|
||||
nr_schedule_response(Sched_INFO);
|
||||
|
||||
// --------- setting parameters for UE --------
|
||||
|
||||
scheduled_response.module_id = 0;
|
||||
scheduled_response.CC_id = 0;
|
||||
scheduled_response.frame = frame;
|
||||
scheduled_response.slot = slot;
|
||||
scheduled_response.dl_config = NULL;
|
||||
scheduled_response.ul_config = &ul_config;
|
||||
scheduled_response.tx_request = &tx_req;
|
||||
scheduled_response.phy_data = (void *)&phy_data;
|
||||
|
||||
// Config UL TX PDU
|
||||
tx_req.slot = slot;
|
||||
tx_req.sfn = frame;
|
||||
tx_req.number_of_pdus = 1; //do_SRS == 1 ? 2 : 1;
|
||||
|
||||
tx_req.tx_request_body[0].pdu_length = TBS / 8;
|
||||
tx_req.tx_request_body[0].pdu_index = 0;
|
||||
tx_req.tx_request_body[0].pdu = &ulsch_input_buffer[0];
|
||||
nr_scheduled_response_t scheduled_response = {.ul_config = &ul_config, .phy_data = (void *)&phy_data};
|
||||
|
||||
ul_config.slot = slot;
|
||||
ul_config.number_pdus = do_SRS == 1 ? 2 : 1;
|
||||
@@ -1098,6 +1079,9 @@ int main(int argc, char *argv[])
|
||||
fapi_nr_ul_config_request_pdu_t *ul_config0 = &ul_config.ul_config_list[0];
|
||||
ul_config0->pdu_type = FAPI_NR_UL_CONFIG_TYPE_PUSCH;
|
||||
nfapi_nr_ue_pusch_pdu_t *pusch_config_pdu = &ul_config0->pusch_config_pdu;
|
||||
// Config UL TX PDU
|
||||
pusch_config_pdu->tx_request_body.pdu = ulsch_input_buffer;
|
||||
pusch_config_pdu->tx_request_body.pdu_length = TBS / 8;
|
||||
pusch_config_pdu->rnti = n_rnti;
|
||||
pusch_config_pdu->pdu_bit_map = pdu_bit_map;
|
||||
pusch_config_pdu->qam_mod_order = mod_order;
|
||||
|
||||
Reference in New Issue
Block a user