Skip to content
Snippets Groups Projects
Commit c71edc21 authored by Sakthivel Velumani's avatar Sakthivel Velumani
Browse files

Fixed the assertion in ulsch pdu header

rfsim works
parent 1c2f9bb6
No related branches found
No related tags found
7 merge requests!1757Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c,!1493fix DL arq errors in UE,!1093Issue in generating NR PRACH for High Speed case,!1074PBCH test case support for non-zero bchpyload,!918Develop nfapi,!847Nr vcd,!738Nr rrc configuration
...@@ -209,8 +209,15 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE, ...@@ -209,8 +209,15 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
} }
//else if(uplink_counter == 0){ //if(!IS_SOFTMODEM_NOS1){ //else if(uplink_counter == 0){ //if(!IS_SOFTMODEM_NOS1){
else{ else{
LOG_D(PHY, "Random data to be tranmsitted: \n"); //Use zeros for the header bytes in noS1 mode, in order to make sure that the LCID is not valid
for (i = 0; i < harq_process_ul_ue->TBS / 8; i++) { //and block this traffic from being forwarded to the upper layers at the gNB
uint16_t payload_offset = 5;
LOG_D(PHY, "Random data to be tranmsitted: \n");
//Give the header bytes some dummy value in order to block the random packet at the MAC layer of the receiver
for (i = 0; i<payload_offset; i++)
harq_process_ul_ue->a[i] = 0;
for (i = payload_offset; i < harq_process_ul_ue->TBS / 8; i++) {
harq_process_ul_ue->a[i] = (unsigned char) rand(); harq_process_ul_ue->a[i] = (unsigned char) rand();
//printf(" input encoder a[%d]=0x%02x\n",i,harq_process_ul_ue->a[i]); //printf(" input encoder a[%d]=0x%02x\n",i,harq_process_ul_ue->a[i]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment