Hardcoding TI and UL_CQI in stub function.
Also, the allocation of the eNB measurement report keeps getting commented out becasue the compiler throws an error. I have un-commented the allocation of memory (becasue it breaks NSA mode) and added a memset to ensure we are using the allocated memory. This gets rid of the warning and ensures NSA mode still works.
This commit is contained in:
@@ -90,8 +90,8 @@ int8_t nr_ue_scheduled_response_stub(nr_scheduled_response_t *scheduled_response
|
|||||||
rx_ind->pdu_list[j].pdu = CALLOC(tx_req_body->pdu_length, sizeof(*rx_ind->pdu_list[j].pdu));
|
rx_ind->pdu_list[j].pdu = CALLOC(tx_req_body->pdu_length, sizeof(*rx_ind->pdu_list[j].pdu));
|
||||||
memcpy(rx_ind->pdu_list[j].pdu, tx_req_body->pdu, tx_req_body->pdu_length * sizeof(*rx_ind->pdu_list[j].pdu));
|
memcpy(rx_ind->pdu_list[j].pdu, tx_req_body->pdu, tx_req_body->pdu_length * sizeof(*rx_ind->pdu_list[j].pdu));
|
||||||
rx_ind->pdu_list[j].rnti = pusch_config_pdu->rnti;
|
rx_ind->pdu_list[j].rnti = pusch_config_pdu->rnti;
|
||||||
rx_ind->pdu_list[j].timing_advance = scheduled_response->tx_request->tx_config.timing_advance;
|
rx_ind->pdu_list[j].timing_advance = 31;
|
||||||
rx_ind->pdu_list[j].ul_cqi = scheduled_response->tx_request->tx_config.ul_cqi;
|
rx_ind->pdu_list[j].ul_cqi = 255;
|
||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
hexdump(rx_ind->pdu_list[j].pdu, rx_ind->pdu_list[j].pdu_length, buffer, sizeof(buffer));
|
hexdump(rx_ind->pdu_list[j].pdu, rx_ind->pdu_list[j].pdu_length, buffer, sizeof(buffer));
|
||||||
LOG_D(NR_MAC, "Hexdump of pdu %s before queuing rx_ind\n",
|
LOG_D(NR_MAC, "Hexdump of pdu %s before queuing rx_ind\n",
|
||||||
@@ -113,7 +113,7 @@ int8_t nr_ue_scheduled_response_stub(nr_scheduled_response_t *scheduled_response
|
|||||||
crc_ind->crc_list[j].num_cb = pusch_config_pdu->pusch_data.num_cb;
|
crc_ind->crc_list[j].num_cb = pusch_config_pdu->pusch_data.num_cb;
|
||||||
crc_ind->crc_list[j].rnti = pusch_config_pdu->rnti;
|
crc_ind->crc_list[j].rnti = pusch_config_pdu->rnti;
|
||||||
crc_ind->crc_list[j].tb_crc_status = 0;
|
crc_ind->crc_list[j].tb_crc_status = 0;
|
||||||
crc_ind->crc_list[j].timing_advance = scheduled_response->tx_request->tx_config.timing_advance;
|
crc_ind->crc_list[j].timing_advance = 31;
|
||||||
crc_ind->crc_list[j].ul_cqi = 255;
|
crc_ind->crc_list[j].ul_cqi = 255;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4293,9 +4293,8 @@ ssize_t do_nrMeasurementReport(uint8_t *buffer,
|
|||||||
LTE_MeasResultListEUTRA_t *measResultListEUTRA2=&measResultNeighCells->choice.measResultListEUTRA;
|
LTE_MeasResultListEUTRA_t *measResultListEUTRA2=&measResultNeighCells->choice.measResultListEUTRA;
|
||||||
asn1cSequenceAdd(measResultListEUTRA2->list, struct LTE_MeasResultEUTRA, measresulteutra_list);
|
asn1cSequenceAdd(measResultListEUTRA2->list, struct LTE_MeasResultEUTRA, measresulteutra_list);
|
||||||
measresulteutra_list->physCellId = phy_id;
|
measresulteutra_list->physCellId = phy_id;
|
||||||
//asn1cCalloc(measresulteutra_list->cgi_Info, measresult_cgi2);
|
asn1cCalloc(measresulteutra_list->cgi_Info, measresult_cgi2);
|
||||||
//measresult_cgi2->cellGlobalId= {0};
|
memset(measresult_cgi2, 0, sizeof(LTE_CellGlobalIdEUTRA_t));
|
||||||
//measresult_cgi2->trackingAreaCode= {0};
|
|
||||||
struct LTE_MeasResultEUTRA__measResult* measResult= &measresulteutra_list->measResult;
|
struct LTE_MeasResultEUTRA__measResult* measResult= &measresulteutra_list->measResult;
|
||||||
asn1cCallocOne(measResult->rsrpResult, rsrp_tar);
|
asn1cCallocOne(measResult->rsrpResult, rsrp_tar);
|
||||||
asn1cCallocOne(measResult->rsrqResult, rsrq_tar);
|
asn1cCallocOne(measResult->rsrqResult, rsrq_tar);
|
||||||
|
|||||||
Reference in New Issue
Block a user