Commit 5ffe7a2e authored by Raymond Knopp's avatar Raymond Knopp

compilation success after merge with master + corrections

parent eb3f6114
...@@ -136,9 +136,10 @@ rrc_mac_config_req_ue(module_id_t Mod_idP, ...@@ -136,9 +136,10 @@ rrc_mac_config_req_ue(module_id_t Mod_idP,
, uint8_t num_active_cba_groups, uint16_t cba_rnti , uint8_t num_active_cba_groups, uint16_t cba_rnti
#endif #endif
#if defined(Rel14) #if defined(Rel14)
,config_action_t config_action ,config_action_t config_action,
,const uint32_t * const sourceL2Id const uint32_t * const sourceL2Id,
,const uint32_t * const destinationL2Id, const uint32_t * const destinationL2Id,
const uint32_t * const groupL2Id,
SL_Preconfiguration_r12_t *SL_Preconfiguration_r12, SL_Preconfiguration_r12_t *SL_Preconfiguration_r12,
uint32_t directFrameNumber_r12, uint32_t directFrameNumber_r12,
long directSubframeNumber_r12, long directSubframeNumber_r12,
......
...@@ -1030,6 +1030,7 @@ int rrc_mac_config_req_ue(module_id_t module_idP, ...@@ -1030,6 +1030,7 @@ int rrc_mac_config_req_ue(module_id_t module_idP,
,config_action_t config_action, ,config_action_t config_action,
const uint32_t * const sourceL2Id, const uint32_t * const sourceL2Id,
const uint32_t * const destinationL2Id, const uint32_t * const destinationL2Id,
const uint32_t * const groupL2Id,
SL_Preconfiguration_r12_t *SL_Preconfiguration_r12_t, SL_Preconfiguration_r12_t *SL_Preconfiguration_r12_t,
uint32_t directFrame_r12, uint32_t directFrame_r12,
long directSubframe_r12, long directSubframe_r12,
......
...@@ -539,7 +539,6 @@ ue_send_sdu(module_id_t module_idP, ...@@ -539,7 +539,6 @@ ue_send_sdu(module_id_t module_idP,
CCCH, CCCH,
(uint8_t*)payload_ptr, (uint8_t*)payload_ptr,
rx_lengths[i], rx_lengths[i],
ENB_FLAG_NO,
eNB_index, eNB_index,
0); 0);
...@@ -802,7 +801,7 @@ ue_send_mch_sdu(module_id_t module_idP, uint8_t CC_id, frame_t frameP, ...@@ -802,7 +801,7 @@ ue_send_mch_sdu(module_id_t module_idP, uint8_t CC_id, frame_t frameP,
mac_rlc_data_ind(module_idP, UE_mac_inst[module_idP].crnti, eNB_index, frameP, ENB_FLAG_NO, MBMS_FLAG_YES, MTCH, /*+ (maxDRB + 3), */ mac_rlc_data_ind(module_idP, UE_mac_inst[module_idP].crnti, eNB_index, frameP, ENB_FLAG_NO, MBMS_FLAG_YES, MTCH, /*+ (maxDRB + 3), */
(char *) payload_ptr, rx_lengths[i], 1, (char *) payload_ptr, rx_lengths[i], 1,
NULL, NULL
#ifdef Rel14 #ifdef Rel14
,SL_RESET_RLC_FLAG_NO ,SL_RESET_RLC_FLAG_NO
#endif #endif
...@@ -864,7 +863,6 @@ void ue_send_sl_sdu(module_id_t module_idP, ...@@ -864,7 +863,6 @@ void ue_send_sl_sdu(module_id_t module_idP,
lcid = UE_mac_inst[module_idP].sl_info[i].LCID; lcid = UE_mac_inst[module_idP].sl_info[i].LCID;
break; break;
} }
>>>>>>> origin
for (j = 0; j< MAX_NUM_LCID; j++){ for (j = 0; j< MAX_NUM_LCID; j++){
if ((longh->LCID < MAX_NUM_LCID_DATA) && (j < MAX_NUM_LCID_DATA)){ if ((longh->LCID < MAX_NUM_LCID_DATA) && (j < MAX_NUM_LCID_DATA)){
...@@ -962,7 +960,6 @@ void ue_send_sl_sdu(module_id_t module_idP, ...@@ -962,7 +960,6 @@ void ue_send_sl_sdu(module_id_t module_idP,
SL_DISCOVERY, SL_DISCOVERY,
sdu, //(uint8_t*)&UE_mac_inst[Mod_id].SL_Discovery[0].Rx_buffer.Payload[0], sdu, //(uint8_t*)&UE_mac_inst[Mod_id].SL_Discovery[0].Rx_buffer.Payload[0],
len, len,
ENB_FLAG_NO,
eNB_index, eNB_index,
0); 0);
......
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
#define RRC_UE #define RRC_UE
#define RRC_UE_C #define RRC_UE_C
#define _GNU_SOURCE
#include <pthread.h>
#include "assertions.h" #include "assertions.h"
#include "hashtable.h" #include "hashtable.h"
#include "asn1_conversions.h" #include "asn1_conversions.h"
...@@ -358,7 +359,6 @@ void init_SL_preconfig(UE_RRC_INST *UE, const uint8_t eNB_index ) ...@@ -358,7 +359,6 @@ void init_SL_preconfig(UE_RRC_INST *UE, const uint8_t eNB_index )
// Discovery (Use Rel13 fields) // Discovery (Use Rel13 fields)
struct SL_PreconfigCommPool_r12 *preconfigdiscpool = malloc16_clear(sizeof(struct SL_PreconfigCommPool_r12));
// Rel13 extensions // Rel13 extensions
struct SL_Preconfiguration_r12__ext1 *ext1 = malloc16_clear(sizeof(struct SL_Preconfiguration_r12__ext1)); struct SL_Preconfiguration_r12__ext1 *ext1 = malloc16_clear(sizeof(struct SL_Preconfiguration_r12__ext1));
...@@ -592,13 +592,23 @@ rrc_t310_expiration( ...@@ -592,13 +592,23 @@ rrc_t310_expiration(
SRB_FLAG_YES, SRB_FLAG_YES,
CONFIG_ACTION_REMOVE, CONFIG_ACTION_REMOVE,
UE_rrc_inst[ctxt_pP->module_id].Srb2[eNB_index].Srb_info.Srb_id, UE_rrc_inst[ctxt_pP->module_id].Srb2[eNB_index].Srb_info.Srb_id,
0); 0
#ifdef Rel14
,0
,0
#endif
);
rrc_rlc_config_req (ctxt_pP, rrc_rlc_config_req (ctxt_pP,
SRB_FLAG_YES, SRB_FLAG_YES,
MBMS_FLAG_NO, MBMS_FLAG_NO,
CONFIG_ACTION_REMOVE, CONFIG_ACTION_REMOVE,
UE_rrc_inst[ctxt_pP->module_id].Srb2[eNB_index].Srb_info.Srb_id, UE_rrc_inst[ctxt_pP->module_id].Srb2[eNB_index].Srb_info.Srb_id,
Rlc_info_um); Rlc_info_um
#ifdef Rel14
,0
,0
#endif
);
UE_rrc_inst[ctxt_pP->module_id].Srb2[eNB_index].Active = 0; UE_rrc_inst[ctxt_pP->module_id].Srb2[eNB_index].Active = 0;
UE_rrc_inst[ctxt_pP->module_id].Srb2[eNB_index].Status = IDLE; UE_rrc_inst[ctxt_pP->module_id].Srb2[eNB_index].Status = IDLE;
UE_rrc_inst[ctxt_pP->module_id].Srb2[eNB_index].Next_check_frame = 0; UE_rrc_inst[ctxt_pP->module_id].Srb2[eNB_index].Next_check_frame = 0;
...@@ -1020,6 +1030,7 @@ rrc_ue_process_measConfig( ...@@ -1020,6 +1030,7 @@ rrc_ue_process_measConfig(
NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL,
1025, // indicates that there is no update in the frame number 1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number 11, // /indicates that there isno update in the subframe number
NULL NULL
...@@ -1543,6 +1554,7 @@ rrc_ue_process_radioResourceConfigDedicated( ...@@ -1543,6 +1554,7 @@ rrc_ue_process_radioResourceConfigDedicated(
NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL,
1025, // indicates that there is no update in the frame number 1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number 11, // /indicates that there isno update in the subframe number
NULL NULL
...@@ -1612,6 +1624,7 @@ rrc_ue_process_radioResourceConfigDedicated( ...@@ -1612,6 +1624,7 @@ rrc_ue_process_radioResourceConfigDedicated(
NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL,
1025, // indicates that there is no update in the frame number 1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number 11, // /indicates that there isno update in the subframe number
NULL NULL
...@@ -1730,6 +1743,7 @@ rrc_ue_process_radioResourceConfigDedicated( ...@@ -1730,6 +1743,7 @@ rrc_ue_process_radioResourceConfigDedicated(
NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL,
1025, // indicates that there is no update in the frame number 1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number 11, // /indicates that there isno update in the subframe number
NULL NULL
...@@ -2349,6 +2363,7 @@ rrc_ue_process_mobilityControlInfo( ...@@ -2349,6 +2363,7 @@ rrc_ue_process_mobilityControlInfo(
NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL,
1025, // indicates that there is no update in the frame number 1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number 11, // /indicates that there isno update in the subframe number
NULL NULL
...@@ -3221,6 +3236,7 @@ int decode_SIB1( const protocol_ctxt_t* const ctxt_pP, const uint8_t eNB_index, ...@@ -3221,6 +3236,7 @@ int decode_SIB1( const protocol_ctxt_t* const ctxt_pP, const uint8_t eNB_index,
NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL,
1025, // indicates that there is no update in the frame number 1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number 11, // /indicates that there isno update in the subframe number
NULL NULL
...@@ -3802,13 +3818,13 @@ uint64_t arfcn_to_freq(long arfcn) { ...@@ -3802,13 +3818,13 @@ uint64_t arfcn_to_freq(long arfcn) {
void dump_sib18(SystemInformationBlockType18_r12_t *sib18){ void dump_sib18(SystemInformationBlockType18_r12_t *sib18){
LOG_I( RRC, "[UE] Dumping SIB18\n" ); LOG_I( RRC, "[UE] Dumping SIB18\n" );
for (int i = 0; i < sib18->commConfig_r12->commRxPool_r12.list.count; i++) { for (int i = 0; i < sib18->commConfig_r12->commRxPool_r12.list.count; i++) {
LOG_I(RRC, " Contents of SIB18 %d/%d \n", i+1, sib18->commConfig_r12->commRxPool_r12.list.count); LOG_I(RRC, " Contents of SIB18 %d/%d \n", i+1, (int)sib18->commConfig_r12->commRxPool_r12.list.count);
LOG_I(RRC, " SIB18 rxPool_sc_CP_Len: %d \n", sib18->commConfig_r12->commRxPool_r12.list.array[i]->sc_CP_Len_r12); LOG_I(RRC, " SIB18 rxPool_sc_CP_Len: %d \n", (int)sib18->commConfig_r12->commRxPool_r12.list.array[i]->sc_CP_Len_r12);
LOG_I(RRC, " SIB18 sc_Period_r12: %d \n", sib18->commConfig_r12->commRxPool_r12.list.array[i]->sc_Period_r12); LOG_I(RRC, " SIB18 sc_Period_r12: %d \n", (int)sib18->commConfig_r12->commRxPool_r12.list.array[i]->sc_Period_r12);
LOG_I(RRC, " SIB18 data_CP_Len_r12: %d \n", sib18->commConfig_r12->commRxPool_r12.list.array[i]->data_CP_Len_r12); LOG_I(RRC, " SIB18 data_CP_Len_r12: %d \n", (int)sib18->commConfig_r12->commRxPool_r12.list.array[i]->data_CP_Len_r12);
LOG_I(RRC, " SIB18 prb_Num_r12: %d \n", sib18->commConfig_r12->commRxPool_r12.list.array[i]->sc_TF_ResourceConfig_r12.prb_Num_r12); LOG_I(RRC, " SIB18 prb_Num_r12: %d \n", (int)sib18->commConfig_r12->commRxPool_r12.list.array[i]->sc_TF_ResourceConfig_r12.prb_Num_r12);
LOG_I(RRC, " SIB18 prb_Start_r12: %d \n", sib18->commConfig_r12->commRxPool_r12.list.array[i]->sc_TF_ResourceConfig_r12.prb_Start_r12); LOG_I(RRC, " SIB18 prb_Start_r12: %d \n", (int)sib18->commConfig_r12->commRxPool_r12.list.array[i]->sc_TF_ResourceConfig_r12.prb_Start_r12);
LOG_I(RRC, " SIB18 prb_End_r12: %d \n", sib18->commConfig_r12->commRxPool_r12.list.array[i]->sc_TF_ResourceConfig_r12.prb_End_r12); LOG_I(RRC, " SIB18 prb_End_r12: %d \n", (int)sib18->commConfig_r12->commRxPool_r12.list.array[i]->sc_TF_ResourceConfig_r12.prb_End_r12);
//to add more log //to add more log
} }
} }
...@@ -3818,14 +3834,14 @@ uint64_t arfcn_to_freq(long arfcn) { ...@@ -3818,14 +3834,14 @@ uint64_t arfcn_to_freq(long arfcn) {
void dump_sib19(SystemInformationBlockType19_r12_t *sib19){ void dump_sib19(SystemInformationBlockType19_r12_t *sib19){
LOG_I( RRC, "[UE] Dumping SIB19\n" ); LOG_I( RRC, "[UE] Dumping SIB19\n" );
for (int i = 0; i < sib19->discConfig_r12->discRxPool_r12.list.count; i++) { for (int i = 0; i < sib19->discConfig_r12->discRxPool_r12.list.count; i++) {
LOG_I(RRC, " Contents of SIB18 %d/%d \n", i+1, sib19->discConfig_r12->discRxPool_r12.list.count); LOG_I(RRC, " Contents of SIB18 %d/%d \n", i+1, (int)sib19->discConfig_r12->discRxPool_r12.list.count);
LOG_I(RRC, " SIB19 cp_Len_r12: %d \n", sib19->discConfig_r12->discRxPool_r12.list.array[i]->cp_Len_r12); LOG_I(RRC, " SIB19 cp_Len_r12: %d \n", (int)sib19->discConfig_r12->discRxPool_r12.list.array[i]->cp_Len_r12);
LOG_I(RRC, " SIB19 discPeriod_r12: %d \n", sib19->discConfig_r12->discRxPool_r12.list.array[i]->discPeriod_r12); LOG_I(RRC, " SIB19 discPeriod_r12: %d \n", (int)sib19->discConfig_r12->discRxPool_r12.list.array[i]->discPeriod_r12);
LOG_I(RRC, " SIB19 numRetx_r12: %d \n", sib19->discConfig_r12->discRxPool_r12.list.array[i]->numRetx_r12); LOG_I(RRC, " SIB19 numRetx_r12: %d \n", (int)sib19->discConfig_r12->discRxPool_r12.list.array[i]->numRetx_r12);
LOG_I(RRC, " SIB19 numRepetition_r12: %d \n", sib19->discConfig_r12->discRxPool_r12.list.array[i]->numRepetition_r12); LOG_I(RRC, " SIB19 numRepetition_r12: %d \n", (int)sib19->discConfig_r12->discRxPool_r12.list.array[i]->numRepetition_r12);
LOG_I(RRC, " SIB19 prb_Num_r12: %d \n", sib19->discConfig_r12->discRxPool_r12.list.array[i]->tf_ResourceConfig_r12.prb_Num_r12); LOG_I(RRC, " SIB19 prb_Num_r12: %d \n", (int)sib19->discConfig_r12->discRxPool_r12.list.array[i]->tf_ResourceConfig_r12.prb_Num_r12);
LOG_I(RRC, " SIB19 prb_Start_r12: %d \n", sib19->discConfig_r12->discRxPool_r12.list.array[i]->tf_ResourceConfig_r12.prb_Start_r12); LOG_I(RRC, " SIB19 prb_Start_r12: %d \n", (int)sib19->discConfig_r12->discRxPool_r12.list.array[i]->tf_ResourceConfig_r12.prb_Start_r12);
LOG_I(RRC, " SIB19 prb_End_r12: %d \n", sib19->discConfig_r12->discRxPool_r12.list.array[i]->tf_ResourceConfig_r12.prb_End_r12); LOG_I(RRC, " SIB19 prb_End_r12: %d \n", (int)sib19->discConfig_r12->discRxPool_r12.list.array[i]->tf_ResourceConfig_r12.prb_End_r12);
//to add more log //to add more log
} }
} }
...@@ -3910,6 +3926,7 @@ uint64_t arfcn_to_freq(long arfcn) { ...@@ -3910,6 +3926,7 @@ uint64_t arfcn_to_freq(long arfcn) {
NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL,
1025, // indicates that there is no update in the frame number 1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number 11, // /indicates that there isno update in the subframe number
NULL NULL
...@@ -4100,6 +4117,7 @@ uint64_t arfcn_to_freq(long arfcn) { ...@@ -4100,6 +4117,7 @@ uint64_t arfcn_to_freq(long arfcn) {
NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL,
1025, // indicates that there is no update in the frame number 1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number 11, // /indicates that there isno update in the subframe number
NULL NULL
...@@ -4610,6 +4628,7 @@ int decode_MCCH_Message( const protocol_ctxt_t* const ctxt_pP, const uint8_t eNB ...@@ -4610,6 +4628,7 @@ int decode_MCCH_Message( const protocol_ctxt_t* const ctxt_pP, const uint8_t eNB
NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL,
1025, // indicates that there is no update in the frame number 1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number 11, // /indicates that there isno update in the subframe number
NULL NULL
...@@ -5219,6 +5238,7 @@ openair_rrc_top_init_ue( ...@@ -5219,6 +5238,7 @@ openair_rrc_top_init_ue(
,CONFIG_ACTION_NULL, ,CONFIG_ACTION_NULL,
(const uint32_t *)NULL, (const uint32_t *)NULL,
(const uint32_t *)NULL, (const uint32_t *)NULL,
(const uint32_t *)NULL,
UE_rrc_inst[module_id].SL_Preconfiguration[0], UE_rrc_inst[module_id].SL_Preconfiguration[0],
1025, // indicates that there is no update in the frame number 1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number 11, // /indicates that there isno update in the subframe number
...@@ -5267,6 +5287,7 @@ uint8_t rrc_ue_generate_SidelinkUEInformation( const protocol_ctxt_t* const ctxt ...@@ -5267,6 +5287,7 @@ uint8_t rrc_ue_generate_SidelinkUEInformation( const protocol_ctxt_t* const ctxt
ctxt_pP->module_id,ctxt_pP->frame, size, eNB_index); ctxt_pP->module_id,ctxt_pP->frame, size, eNB_index);
return size; return size;
} }
return(0);
} }
...@@ -5290,7 +5311,7 @@ uint8_t fill_SLSS(const protocol_ctxt_t* const ctxt_pP, const uint8_t eNB_index, ...@@ -5290,7 +5311,7 @@ uint8_t fill_SLSS(const protocol_ctxt_t* const ctxt_pP, const uint8_t eNB_index,
//if RRC_CONNECTED (Todo: and if networkControlledSyncTx (RRCConnectionReconfiguration) is configured and set to On) //if RRC_CONNECTED (Todo: and if networkControlledSyncTx (RRCConnectionReconfiguration) is configured and set to On)
if (UE_rrc_inst[ctxt_pP->module_id].Info[eNB_index].State == RRC_CONNECTED){ if (UE_rrc_inst[ctxt_pP->module_id].Info[eNB_index].State == RRC_CONNECTED){
//select subframe(s) indicated by syncOffsetIndicator //select subframe(s) indicated by syncOffsetIndicator
subframe = syncOffsetIndicator; *subframe = syncOffsetIndicator;
} else { } else {
//select subframe(s) indicated by syncOffsetIndicator within SC period //select subframe(s) indicated by syncOffsetIndicator within SC period
} }
...@@ -5461,7 +5482,6 @@ rrc_control_socket_init(){ ...@@ -5461,7 +5482,6 @@ rrc_control_socket_init(){
pthread_attr_t attr; pthread_attr_t attr;
struct sched_param sched_param; struct sched_param sched_param;
int optval; // flag value for setsockopt int optval; // flag value for setsockopt
int n; // message byte size
//init the mutex //init the mutex
//pthread_mutex_init(&slrb_mutex, NULL); //pthread_mutex_init(&slrb_mutex, NULL);
...@@ -5517,10 +5537,9 @@ rrc_control_socket_init(){ ...@@ -5517,10 +5537,9 @@ rrc_control_socket_init(){
void *rrc_control_socket_thread_fct(void *arg) void *rrc_control_socket_thread_fct(void *arg)
{ {
int prose_addr_len; unsigned int prose_addr_len;
char send_buf[BUFSIZE]; char send_buf[BUFSIZE];
char receive_buf[BUFSIZE]; char receive_buf[BUFSIZE];
int optval;
int n; int n;
struct sidelink_ctrl_element *sl_ctrl_msg_recv = NULL; struct sidelink_ctrl_element *sl_ctrl_msg_recv = NULL;
struct sidelink_ctrl_element *sl_ctrl_msg_send = NULL; struct sidelink_ctrl_element *sl_ctrl_msg_send = NULL;
...@@ -5543,7 +5562,6 @@ void *rrc_control_socket_thread_fct(void *arg) ...@@ -5543,7 +5562,6 @@ void *rrc_control_socket_thread_fct(void *arg)
//from the main program, listen for the incoming messages from control socket (ProSe App) //from the main program, listen for the incoming messages from control socket (ProSe App)
prose_addr_len = sizeof(prose_app_addr); prose_addr_len = sizeof(prose_app_addr);
int enable_notification = 1;
while (1) { while (1) {
LOG_I(RRC,"Listening to incoming connection from ProSe App \n"); LOG_I(RRC,"Listening to incoming connection from ProSe App \n");
// receive a message from ProSe App // receive a message from ProSe App
...@@ -5773,6 +5791,7 @@ void *rrc_control_socket_thread_fct(void *arg) ...@@ -5773,6 +5791,7 @@ void *rrc_control_socket_thread_fct(void *arg)
&sourceL2Id, &sourceL2Id,
&groupL2Id, &groupL2Id,
NULL, NULL,
NULL,
1025, // indicates that there is no update in the frame number 1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number 11, // /indicates that there isno update in the subframe number
NULL NULL
...@@ -5861,6 +5880,7 @@ void *rrc_control_socket_thread_fct(void *arg) ...@@ -5861,6 +5880,7 @@ void *rrc_control_socket_thread_fct(void *arg)
&sourceL2Id, &sourceL2Id,
&destinationL2Id, &destinationL2Id,
NULL, NULL,
NULL,
1025, // indicates that there is no update in the frame number 1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number 11, // /indicates that there isno update in the subframe number
NULL NULL
...@@ -6055,6 +6075,7 @@ void *rrc_control_socket_thread_fct(void *arg) ...@@ -6055,6 +6075,7 @@ void *rrc_control_socket_thread_fct(void *arg)
&sourceL2Id, &sourceL2Id,
&destinationL2Id, &destinationL2Id,
NULL, NULL,
NULL,
1025, // indicates that there is no update in the frame number 1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number 11, // /indicates that there isno update in the subframe number
NULL NULL
...@@ -6113,7 +6134,7 @@ void *rrc_control_socket_thread_fct(void *arg) ...@@ -6113,7 +6134,7 @@ void *rrc_control_socket_thread_fct(void *arg)
//TEST Remove RLC //TEST Remove RLC
drb_id = slrb_id; drb_id = slrb_id;
drb2release_list = CALLOC(1, sizeof(DRB_ToReleaseList_t)); drb2release_list = CALLOC(1, sizeof(DRB_ToReleaseList_t));
ASN_SEQUENCE_ADD(&drb2release_list->list, drb_id); ASN_SEQUENCE_ADD(&drb2release_list->list, &drb_id);
/* /*
rrc_rlc_config_asn1_req(&ctxt, rrc_rlc_config_asn1_req(&ctxt,
...@@ -6172,6 +6193,10 @@ void *rrc_control_socket_thread_fct(void *arg) ...@@ -6172,6 +6193,10 @@ void *rrc_control_socket_thread_fct(void *arg)
,CONFIG_ACTION_REMOVE, ,CONFIG_ACTION_REMOVE,
&sourceL2Id, &sourceL2Id,
NULL, NULL,
NULL,
NULL,
1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number
NULL NULL
#endif #endif
); );
...@@ -6386,6 +6411,7 @@ void *rrc_control_socket_thread_fct(void *arg) ...@@ -6386,6 +6411,7 @@ void *rrc_control_socket_thread_fct(void *arg)
,CONFIG_ACTION_ADD, ,CONFIG_ACTION_ADD,
&sourceL2Id, &sourceL2Id,
&destinationL2Id, &destinationL2Id,
NULL,
NULL, NULL,
1025, // indicates that there is no update in the frame number 1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number 11, // /indicates that there isno update in the subframe number
...@@ -6430,6 +6456,7 @@ void *rrc_control_socket_thread_fct(void *arg) ...@@ -6430,6 +6456,7 @@ void *rrc_control_socket_thread_fct(void *arg)
&sourceL2Id, &sourceL2Id,
NULL, NULL,
NULL, NULL,
NULL,
1025, // indicates that there is no update in the frame number 1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number 11, // /indicates that there isno update in the subframe number
NULL NULL
...@@ -6485,7 +6512,7 @@ void *rrc_control_socket_thread_fct(void *arg) ...@@ -6485,7 +6512,7 @@ void *rrc_control_socket_thread_fct(void *arg)
//TEST Remove RLC //TEST Remove RLC
drb_id = slrb_id; drb_id = slrb_id;
drb2release_list = CALLOC(1, sizeof(DRB_ToReleaseList_t)); drb2release_list = CALLOC(1, sizeof(DRB_ToReleaseList_t));
ASN_SEQUENCE_ADD(&drb2release_list->list, drb_id); ASN_SEQUENCE_ADD(&drb2release_list->list, &drb_id);
rrc_rlc_config_asn1_req(&ctxt, rrc_rlc_config_asn1_req(&ctxt,
...@@ -6534,6 +6561,10 @@ void *rrc_control_socket_thread_fct(void *arg) ...@@ -6534,6 +6561,10 @@ void *rrc_control_socket_thread_fct(void *arg)
,CONFIG_ACTION_REMOVE, ,CONFIG_ACTION_REMOVE,
&sourceL2Id, &sourceL2Id,
NULL, NULL,
NULL,
NULL,
1025, // indicates that there is no update in the frame number
11, // /indicates that there isno update in the subframe number
NULL NULL
#endif #endif
); );
...@@ -6598,9 +6629,9 @@ int decode_MIB_SL( const protocol_ctxt_t* const ctxt_pP, ...@@ -6598,9 +6629,9 @@ int decode_MIB_SL( const protocol_ctxt_t* const ctxt_pP,
LOG_D(RRC,"Decoded MIBSL SFN.SF %d.%d, sl_Bandwidth_r12 %d, InCoverage %d\n", LOG_D(RRC,"Decoded MIBSL SFN.SF %d.%d, sl_Bandwidth_r12 %d, InCoverage %d\n",
BIT_STRING_to_uint32(&UE_rrc_inst[ctxt_pP->module_id].SL_mib[0]->message.directFrameNumber_r12), // indicates that there is no update in the frame number BIT_STRING_to_uint32(&UE_rrc_inst[ctxt_pP->module_id].SL_mib[0]->message.directFrameNumber_r12), // indicates that there is no update in the frame number
UE_rrc_inst[ctxt_pP->module_id].SL_mib[0]->message.directSubframeNumber_r12, // /indicates that there isno update in the subframe number (int)UE_rrc_inst[ctxt_pP->module_id].SL_mib[0]->message.directSubframeNumber_r12, // /indicates that there isno update in the subframe number
UE_rrc_inst[ctxt_pP->module_id].SL_mib[0]->message.sl_Bandwidth_r12, (int)UE_rrc_inst[ctxt_pP->module_id].SL_mib[0]->message.sl_Bandwidth_r12,
UE_rrc_inst[ctxt_pP->module_id].SL_mib[0]->message.inCoverage_r12); (int)UE_rrc_inst[ctxt_pP->module_id].SL_mib[0]->message.inCoverage_r12);
rrc_mac_config_req_ue(ctxt_pP->module_id, 0, 0, rrc_mac_config_req_ue(ctxt_pP->module_id, 0, 0,
(RadioResourceConfigCommonSIB_t *)NULL, (RadioResourceConfigCommonSIB_t *)NULL,
...@@ -6636,6 +6667,7 @@ int decode_MIB_SL( const protocol_ctxt_t* const ctxt_pP, ...@@ -6636,6 +6667,7 @@ int decode_MIB_SL( const protocol_ctxt_t* const ctxt_pP,
#if defined(Rel14) #if defined(Rel14)
, ,
0, 0,
NULL,
NULL, NULL,
NULL, NULL,
NULL, NULL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment