Commit 443af7af authored by Matthieu Kanj's avatar Matthieu Kanj

renaming functions in file: openair2/RRC/LITE/proto_NB_IoT.h

parent c0b027b4
...@@ -117,7 +117,7 @@ void rx_sdu_NB_IoT(const module_id_t enb_mod_idP, ...@@ -117,7 +117,7 @@ void rx_sdu_NB_IoT(const module_id_t enb_mod_idP,
/*RLF procedure this part just check UE context is NULL or not, if not, means UL in synch*/ /*RLF procedure this part just check UE context is NULL or not, if not, means UL in synch*/
if (UE_list->UE_sched_ctrl[UE_id].ul_out_of_sync > 0) { if (UE_list->UE_sched_ctrl[UE_id].ul_out_of_sync > 0) {
UE_list->UE_sched_ctrl[UE_id].ul_out_of_sync=0; UE_list->UE_sched_ctrl[UE_id].ul_out_of_sync=0;
NB_mac_eNB_rrc_ul_in_sync(enb_mod_idP,CC_idP,frameP,subframeP,UE_RNTI(enb_mod_idP,UE_id)); mac_eNB_rrc_ul_in_sync_NB_IoT(enb_mod_idP,CC_idP,frameP,subframeP,UE_RNTI(enb_mod_idP,UE_id));
} }
} }
...@@ -160,7 +160,7 @@ void rx_sdu_NB_IoT(const module_id_t enb_mod_idP, ...@@ -160,7 +160,7 @@ void rx_sdu_NB_IoT(const module_id_t enb_mod_idP,
if (UE_list->UE_sched_ctrl[UE_id].ul_out_of_sync > 0) { if (UE_list->UE_sched_ctrl[UE_id].ul_out_of_sync > 0) {
UE_list->UE_sched_ctrl[UE_id].ul_out_of_sync=0; UE_list->UE_sched_ctrl[UE_id].ul_out_of_sync=0;
/*In RRC branch*/ /*In RRC branch*/
//NB_mac_eNB_rrc_ul_in_sync(enb_mod_idP,CC_idP,frameP,subframeP,(((uint16_t)payload_ptr[0])<<8) + payload_ptr[1]); //mac_eNB_rrc_ul_in_sync_NB_IoT(enb_mod_idP,CC_idP,frameP,subframeP,(((uint16_t)payload_ptr[0])<<8) + payload_ptr[1]);
} }
} }
crnti_rx=1; crnti_rx=1;
...@@ -268,7 +268,7 @@ void rx_sdu_NB_IoT(const module_id_t enb_mod_idP, ...@@ -268,7 +268,7 @@ void rx_sdu_NB_IoT(const module_id_t enb_mod_idP,
if (Is_rrc_nb_iot_registered == 1) if (Is_rrc_nb_iot_registered == 1)
//MP: send directly the information to the RRC in case of CCCH (SRB0) //MP: send directly the information to the RRC in case of CCCH (SRB0)
NB_mac_rrc_data_ind_eNB( mac_rrc_data_ind_eNB_NB_IoT(
enb_mod_idP, enb_mod_idP,
CC_idP, CC_idP,
frameP, frameP,
...@@ -316,7 +316,7 @@ void rx_sdu_NB_IoT(const module_id_t enb_mod_idP, ...@@ -316,7 +316,7 @@ void rx_sdu_NB_IoT(const module_id_t enb_mod_idP,
LOG_D(MAC,"[eNB %d] CC_id %d Frame %d : ULSCH -> UL-DCCH, received %d bytes form UE %d on LCID %d \n", LOG_D(MAC,"[eNB %d] CC_id %d Frame %d : ULSCH -> UL-DCCH, received %d bytes form UE %d on LCID %d \n",
enb_mod_idP,CC_idP,frameP, rx_lengths[i], UE_id, rx_lcids[i]); enb_mod_idP,CC_idP,frameP, rx_lengths[i], UE_id, rx_lcids[i]);
NB_mac_rlc_data_ind( mac_rlc_data_ind_NB_IoT(
enb_mod_idP, enb_mod_idP,
rntiP, rntiP,
enb_mod_idP, enb_mod_idP,
...@@ -361,7 +361,7 @@ void rx_sdu_NB_IoT(const module_id_t enb_mod_idP, ...@@ -361,7 +361,7 @@ void rx_sdu_NB_IoT(const module_id_t enb_mod_idP,
UE_list->UE_template[CC_idP][UE_id].ul_buffer_info[UE_list->UE_template[CC_idP][UE_id].lcgidmap[rx_lcids[i]]] = 0;*/ UE_list->UE_template[CC_idP][UE_id].ul_buffer_info[UE_list->UE_template[CC_idP][UE_id].lcgidmap[rx_lcids[i]]] = 0;*/
if ((rx_lengths[i] <SCH_PAYLOAD_SIZE_MAX) && (rx_lengths[i] > 0) ) { // MAX SIZE OF transport block if ((rx_lengths[i] <SCH_PAYLOAD_SIZE_MAX) && (rx_lengths[i] > 0) ) { // MAX SIZE OF transport block
NB_mac_rlc_data_ind( mac_rlc_data_ind_NB_IoT(
enb_mod_idP, enb_mod_idP,
rntiP, rntiP,
enb_mod_idP, enb_mod_idP,
......
...@@ -137,7 +137,7 @@ int mac_top_init_NB_IoT() ...@@ -137,7 +137,7 @@ int mac_top_init_NB_IoT()
if (Is_rrc_nb_iot_registered == 1) { if (Is_rrc_nb_iot_registered == 1) {
LOG_I(MAC,"[MAIN] calling RRC NB-IoT\n"); LOG_I(MAC,"[MAIN] calling RRC NB-IoT\n");
#ifndef CELLULAR //nothing to be done yet for cellular #ifndef CELLULAR //nothing to be done yet for cellular
openair_rrc_top_init_eNB_NB(); openair_rrc_top_init_eNB_NB_IoT();
#endif #endif
} else { } else {
LOG_I(MAC,"[MAIN] Running without an RRC\n"); LOG_I(MAC,"[MAIN] Running without an RRC\n");
......
...@@ -1680,7 +1680,7 @@ pdcp_config_set_security( ...@@ -1680,7 +1680,7 @@ pdcp_config_set_security(
} }
/*]SecurityModeFailure*/ /*]SecurityModeFailure*/
else if(security_modeP == -1){ else if(security_modeP == -1){
// in this way in NB_pdcp_data_req function you never call "pdcp_apply_security" // in this way in pdcp_data_req_NB_IoT function you never call "pdcp_apply_security"
// and we never call pdcp_validate_security in NB_pdcp_data_indi // and we never call pdcp_validate_security in NB_pdcp_data_indi
pdcp_pP->security_activated = 0; pdcp_pP->security_activated = 0;
pdcp_pP->cipheringAlgorithm = 0; pdcp_pP->cipheringAlgorithm = 0;
......
...@@ -78,7 +78,7 @@ typedef struct{ ...@@ -78,7 +78,7 @@ typedef struct{
module_id_t mod_id; module_id_t mod_id;
int CC_id; int CC_id;
uint16_t rnti; uint16_t rnti;
int get_MIB; //should be different from 0 only when the mib!= null (NB_rrc_mac_config_req_eNB) int get_MIB; //should be different from 0 only when the mib!= null (NB_rrc_mac_config_req_eNB_IoT)
int get_COMMON; int get_COMMON;
int get_DEDICATED; int get_DEDICATED;
......
This diff is collapsed.
This diff is collapsed.
...@@ -89,12 +89,12 @@ rrc_t310_expiration_NB( ...@@ -89,12 +89,12 @@ rrc_t310_expiration_NB(
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);
NB_rrc_rlc_config_req( rrc_rlc_config_req_NB_IoT(
ctxt_pP, ctxt_pP,
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,
Rlc_info_am_NB); Rlc_info_am_NB);
UE_rrc_inst[ctxt_pP->module_id].Srb2[eNB_index].Active = 0; UE_rrc_inst[ctxt_pP->module_id].Srb2[eNB_index].Active = 0;
...@@ -110,10 +110,9 @@ rrc_t310_expiration_NB( ...@@ -110,10 +110,9 @@ rrc_t310_expiration_NB(
//configure BCCH & CCCH Logical Channels and associated rrc_buffers, configure associated SRBs //configure BCCH & CCCH Logical Channels and associated rrc_buffers, configure associated SRBs
//called by openair_rrc_eNB_configuration_NB //called by openair_rrc_eNB_configuration_NB_IoT
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void void openair_eNB_rrc_on_NB_IoT(
openair_eNB_rrc_on_NB(
const protocol_ctxt_t* const ctxt_pP const protocol_ctxt_t* const ctxt_pP
) )
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
...@@ -124,9 +123,9 @@ openair_eNB_rrc_on_NB( ...@@ -124,9 +123,9 @@ openair_eNB_rrc_on_NB(
LOG_I(RRC, PROTOCOL_RRC_CTXT_FMT" OPENAIR RRC-NB IN....\n", LOG_I(RRC, PROTOCOL_RRC_CTXT_FMT" OPENAIR RRC-NB IN....\n",
PROTOCOL_RRC_CTXT_ARGS(ctxt_pP)); PROTOCOL_RRC_CTXT_ARGS(ctxt_pP));
for (CC_id = 0; CC_id < MAX_NUM_CCs; CC_id++) { for (CC_id = 0; CC_id < MAX_NUM_CCs; CC_id++) {
rrc_config_buffer_NB (&eNB_rrc_inst_NB[ctxt_pP->module_id].carrier[CC_id].SI, BCCH, 1); rrc_config_buffer_NB_IoT (&eNB_rrc_inst_NB[ctxt_pP->module_id].carrier[CC_id].SI, BCCH, 1);
eNB_rrc_inst_NB[ctxt_pP->module_id].carrier[CC_id].SI.Active = 1; eNB_rrc_inst_NB[ctxt_pP->module_id].carrier[CC_id].SI.Active = 1;
rrc_config_buffer_NB (&eNB_rrc_inst_NB[ctxt_pP->module_id].carrier[CC_id].Srb0, CCCH, 1); rrc_config_buffer_NB_IoT (&eNB_rrc_inst_NB[ctxt_pP->module_id].carrier[CC_id].Srb0, CCCH, 1);
eNB_rrc_inst_NB[ctxt_pP->module_id].carrier[CC_id].Srb0.Active = 1; eNB_rrc_inst_NB[ctxt_pP->module_id].carrier[CC_id].Srb0.Active = 1;
} }
//no UE side //no UE side
...@@ -135,8 +134,7 @@ openair_eNB_rrc_on_NB( ...@@ -135,8 +134,7 @@ openair_eNB_rrc_on_NB(
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void void rrc_config_buffer_NB_IoT(
rrc_config_buffer_NB(
SRB_INFO_NB* Srb_info, SRB_INFO_NB* Srb_info,
uint8_t Lchan_type, uint8_t Lchan_type,
uint8_t Role uint8_t Role
...@@ -157,7 +155,7 @@ int rrc_init_global_param_NB_IoT( void ) ...@@ -157,7 +155,7 @@ int rrc_init_global_param_NB_IoT( void )
{ {
//may no more used (defined in rlc_rrc.c) //may no more used (defined in rlc_rrc.c)
rrc_rlc_register_rrc_NB (NB_rrc_data_ind, NULL); //register with rlc rrc_rlc_register_rrc_NB_IoT (rrc_data_ind_NB_IoT, NULL); //register with rlc
//XXX MP: most probably ALL of this stuff are no more needed (also the one not commented) //XXX MP: most probably ALL of this stuff are no more needed (also the one not commented)
...@@ -172,7 +170,7 @@ int rrc_init_global_param_NB_IoT( void ) ...@@ -172,7 +170,7 @@ int rrc_init_global_param_NB_IoT( void )
#ifndef NO_RRM #ifndef NO_RRM
if (L3_xface_init_NB ()) { //XXX to be modified??? if (L3_xface_init_NB_IoT ()) { //XXX to be modified???
return (-1); return (-1);
} }
...@@ -185,7 +183,7 @@ if (L3_xface_init_NB ()) { //XXX to be modified??? ...@@ -185,7 +183,7 @@ if (L3_xface_init_NB ()) { //XXX to be modified???
#ifndef NO_RRM #ifndef NO_RRM
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
int int
L3_xface_init_NB( //Exact copy of the LTE implementation L3_xface_init_NB_IoT( //Exact copy of the LTE implementation
void void
) )
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
...@@ -240,9 +238,8 @@ L3_xface_init_NB( //Exact copy of the LTE implementation ...@@ -240,9 +238,8 @@ L3_xface_init_NB( //Exact copy of the LTE implementation
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
//specialized function for the eNB initialization (NB-IoT) //specialized function for the eNB initialization (NB-IoT)
//(OLD was called in MAC/main.c--> mac_top_init)(NEW is called in directly in "openair_rrc_eNB_configuration_NB") //(OLD was called in MAC/main.c--> mac_top_init)(NEW is called in directly in "openair_rrc_eNB_configuration_NB_IoT")
void void openair_rrc_top_init_eNB_NB_IoT(void)//MP: XXX Raymond put this directly the definition on rrc_eNB.c file
openair_rrc_top_init_eNB_NB(void)//MP: XXX Raymond put this directly the definition on rrc_eNB.c file
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
{ {
...@@ -272,7 +269,7 @@ openair_rrc_top_init_eNB_NB(void)//MP: XXX Raymond put this directly the definit ...@@ -272,7 +269,7 @@ openair_rrc_top_init_eNB_NB(void)//MP: XXX Raymond put this directly the definit
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
//XXX MP: most probably is not needed //XXX MP: most probably is not needed
RRC_status_t RRC_status_t
rrc_rx_tx_NB( rrc_rx_tx_NB_IoT(
protocol_ctxt_t* const ctxt_pP, protocol_ctxt_t* const ctxt_pP,
const uint8_t enb_indexP, const uint8_t enb_indexP,
const int CC_id const int CC_id
...@@ -421,7 +418,7 @@ rrc_rx_tx_NB( ...@@ -421,7 +418,7 @@ rrc_rx_tx_NB(
} }
} }
if (ue_to_be_removed) if (ue_to_be_removed)
rrc_eNB_free_UE_NB(ctxt_pP->module_id,ue_to_be_removed); rrc_eNB_free_UE_NB_IoT(ctxt_pP->module_id,ue_to_be_removed);
//no localization in NB-IoT //no localization in NB-IoT
(void)ts; /* remove gcc warning "unused variable" */ (void)ts; /* remove gcc warning "unused variable" */
......
This diff is collapsed.
...@@ -333,7 +333,7 @@ void rrc_eNB_remove_ue_context_NB( ...@@ -333,7 +333,7 @@ void rrc_eNB_remove_ue_context_NB(
"0 Removed UE %"PRIx16" ", "0 Removed UE %"PRIx16" ",
ue_context_pP->ue_context.rnti); ue_context_pP->ue_context.rnti);
rrc_eNB_free_mem_UE_context_NB(ctxt_pP, ue_context_pP); rrc_eNB_free_mem_UE_context_NB_IoT(ctxt_pP, ue_context_pP);
uid_linear_allocator_free_NB(rrc_instance_pP, ue_context_pP->local_uid); uid_linear_allocator_free_NB(rrc_instance_pP, ue_context_pP->local_uid);
free(ue_context_pP); free(ue_context_pP);
LOG_I(RRC, LOG_I(RRC,
......
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