nr-ip-ul-nos1: Remove warnings
This commit is contained in:
@@ -1723,7 +1723,6 @@ set(NR_L2_SRC_UE
|
|||||||
${NR_UE_RRC_DIR}/L2_interface_ue.c
|
${NR_UE_RRC_DIR}/L2_interface_ue.c
|
||||||
${NR_UE_RRC_DIR}/main_ue.c
|
${NR_UE_RRC_DIR}/main_ue.c
|
||||||
${NR_UE_RRC_DIR}/rrc_UE.c
|
${NR_UE_RRC_DIR}/rrc_UE.c
|
||||||
${LTE_RLC_SRC}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set (MAC_SRC
|
set (MAC_SRC
|
||||||
|
|||||||
@@ -1076,7 +1076,7 @@ void nr_pusch_codeword_scrambling(uint8_t *in,
|
|||||||
- transform precoding
|
- transform precoding
|
||||||
*/
|
*/
|
||||||
|
|
||||||
uint8_t nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
|
void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
|
||||||
unsigned char harq_pid,
|
unsigned char harq_pid,
|
||||||
uint8_t frame,
|
uint8_t frame,
|
||||||
uint8_t slot,
|
uint8_t slot,
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
#include "PHY/defs_nr_common.h"
|
#include "PHY/defs_nr_common.h"
|
||||||
#include "PHY/TOOLS/tools_defs.h"
|
#include "PHY/TOOLS/tools_defs.h"
|
||||||
#include "executables/nr-softmodem.h"
|
#include "executables/nr-softmodem.h"
|
||||||
|
#include "LAYER2/NR_MAC_UE/mac_proto.h"
|
||||||
|
|
||||||
//#define DEBUG_SCFDMA
|
//#define DEBUG_SCFDMA
|
||||||
//#define DEBUG_PUSCH_MAPPING
|
//#define DEBUG_PUSCH_MAPPING
|
||||||
@@ -88,7 +89,7 @@ void nr_pusch_codeword_scrambling(uint8_t *in,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
|
void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
|
||||||
unsigned char harq_pid,
|
unsigned char harq_pid,
|
||||||
uint8_t frame,
|
uint8_t frame,
|
||||||
uint8_t slot,
|
uint8_t slot,
|
||||||
@@ -205,7 +206,7 @@ uint8_t 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_E(PHY, "Random data to be tranmsitted: \n");
|
LOG_D(PHY, "Random data to be tranmsitted: \n");
|
||||||
for (i = 0; i < harq_process_ul_ue->TBS / 8; i++) {
|
for (i = 0; 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]);
|
||||||
@@ -214,7 +215,7 @@ uint8_t nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
|
|||||||
}
|
}
|
||||||
} 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");
|
||||||
return 0;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------//
|
//-----------------------------------------------------//
|
||||||
@@ -427,7 +428,6 @@ uint8_t nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
|
|||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
LOG_D(PHY, "Is data existing ?: %d \n", data_existing);
|
LOG_D(PHY, "Is data existing ?: %d \n", data_existing);
|
||||||
return data_existing;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2483,9 +2483,8 @@ void phy_procedures_nrUE_TX(PHY_VARS_NR_UE *ue,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint8_t harq_pid = 0; //temporary implementation
|
uint8_t harq_pid = 0; //temporary implementation
|
||||||
uint8_t data_existing = 0;
|
|
||||||
|
|
||||||
data_existing = nr_ue_ulsch_procedures(ue,
|
nr_ue_ulsch_procedures(ue,
|
||||||
harq_pid,
|
harq_pid,
|
||||||
frame_tx,
|
frame_tx,
|
||||||
slot_tx,
|
slot_tx,
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
//int mbms_rab_id = 2047;
|
||||||
|
|
||||||
//#define ENABLE_MAC_PAYLOAD_DEBUG 1
|
//#define ENABLE_MAC_PAYLOAD_DEBUG 1
|
||||||
|
|
||||||
@@ -2482,7 +2483,7 @@ uint8_t
|
|||||||
nr_ue_get_sdu(module_id_t module_idP, int CC_id, frame_t frameP,
|
nr_ue_get_sdu(module_id_t module_idP, int CC_id, frame_t frameP,
|
||||||
sub_frame_t subframe, uint8_t eNB_index,
|
sub_frame_t subframe, uint8_t eNB_index,
|
||||||
uint8_t *ulsch_buffer, uint16_t buflen, uint8_t *access_mode) {
|
uint8_t *ulsch_buffer, uint16_t buflen, uint8_t *access_mode) {
|
||||||
uint8_t total_rlc_pdu_header_len = 0, rlc_pdu_header_len_last = 0;
|
uint8_t total_rlc_pdu_header_len = 0;
|
||||||
int16_t buflen_remain = 0;
|
int16_t buflen_remain = 0;
|
||||||
uint8_t lcid = 0;
|
uint8_t lcid = 0;
|
||||||
uint16_t sdu_lengths[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
|
uint16_t sdu_lengths[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
|
||||||
@@ -2490,8 +2491,7 @@ nr_ue_get_sdu(module_id_t module_idP, int CC_id, frame_t frameP,
|
|||||||
uint16_t payload_offset = 0, num_sdus = 0;
|
uint16_t payload_offset = 0, num_sdus = 0;
|
||||||
uint8_t ulsch_sdus[MAX_ULSCH_PAYLOAD_BYTES];
|
uint8_t ulsch_sdus[MAX_ULSCH_PAYLOAD_BYTES];
|
||||||
uint16_t sdu_length_total = 0;
|
uint16_t sdu_length_total = 0;
|
||||||
unsigned short post_padding = 0, padding_len = 0;
|
unsigned short post_padding = 0;
|
||||||
int j; // used for padding
|
|
||||||
|
|
||||||
rlc_buffer_occupancy_t lcid_buffer_occupancy_old =
|
rlc_buffer_occupancy_t lcid_buffer_occupancy_old =
|
||||||
0, lcid_buffer_occupancy_new = 0;
|
0, lcid_buffer_occupancy_new = 0;
|
||||||
@@ -2504,7 +2504,7 @@ nr_ue_get_sdu(module_id_t module_idP, int CC_id, frame_t frameP,
|
|||||||
start_meas(&UE_mac_inst[module_idP].tx_ulsch_sdu);
|
start_meas(&UE_mac_inst[module_idP].tx_ulsch_sdu);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
NR_UE_MAC_INST_t *nr_ue_mac_inst = get_mac_inst(0);
|
//NR_UE_MAC_INST_t *nr_ue_mac_inst = get_mac_inst(0);
|
||||||
|
|
||||||
// Check for DCCH first
|
// Check for DCCH first
|
||||||
// TO DO: Multiplex in the order defined by the logical channel prioritization
|
// TO DO: Multiplex in the order defined by the logical channel prioritization
|
||||||
|
|||||||
@@ -561,7 +561,7 @@ void nr_process_mac_pdu(
|
|||||||
// This function is adapting code from the old
|
// This function is adapting code from the old
|
||||||
// parse_header(...) and ue_send_sdu(...) functions of OAI LTE
|
// parse_header(...) and ue_send_sdu(...) functions of OAI LTE
|
||||||
|
|
||||||
uint8_t *pdu_ptr = pduP, rx_lcid, done = 0, i;
|
uint8_t *pdu_ptr = pduP, rx_lcid, done = 0;
|
||||||
int pdu_len = mac_pdu_len;
|
int pdu_len = mac_pdu_len;
|
||||||
uint16_t mac_ce_len, mac_subheader_len, mac_sdu_len;
|
uint16_t mac_ce_len, mac_subheader_len, mac_sdu_len;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user