Commit 61fc53f8 authored by wujing's avatar wujing

skip crnti if c-plane is not completed

parent c227a34d
...@@ -460,7 +460,7 @@ rx_sdu(const module_id_t enb_mod_idP, ...@@ -460,7 +460,7 @@ rx_sdu(const module_id_t enb_mod_idP,
if (RA_id != -1) { if (RA_id != -1) {
RA_t *ra = &(mac->common_channels[CC_idP].ra[RA_id]); RA_t *ra = &(mac->common_channels[CC_idP].ra[RA_id]);
mac_rrc_data_ind(enb_mod_idP, int8_t ret = mac_rrc_data_ind(enb_mod_idP,
CC_idP, CC_idP,
frameP, subframeP, frameP, subframeP,
UE_id, UE_id,
...@@ -474,6 +474,7 @@ rx_sdu(const module_id_t enb_mod_idP, ...@@ -474,6 +474,7 @@ rx_sdu(const module_id_t enb_mod_idP,
#endif #endif
); );
/* Received a new rnti */ /* Received a new rnti */
if(ret == 0){
ra->state = MSGCRNTI; ra->state = MSGCRNTI;
LOG_I(MAC, "[eNB %d] Frame %d, Subframe %d CC_id %d : (rnti %x UE_id %d) Received rnti(Msg4)\n", LOG_I(MAC, "[eNB %d] Frame %d, Subframe %d CC_id %d : (rnti %x UE_id %d) Received rnti(Msg4)\n",
enb_mod_idP, enb_mod_idP,
...@@ -502,6 +503,9 @@ rx_sdu(const module_id_t enb_mod_idP, ...@@ -502,6 +503,9 @@ rx_sdu(const module_id_t enb_mod_idP,
} }
UE_template_ptr->ul_SR = 1; UE_template_ptr->ul_SR = 1;
UE_scheduling_control->crnti_reconfigurationcomplete_flag = 1; UE_scheduling_control->crnti_reconfigurationcomplete_flag = 1;
}else{
cancel_ra_proc(enb_mod_idP, CC_idP, frameP, current_rnti);
}
// break; // break;
} }
} }
......
...@@ -289,12 +289,17 @@ mac_rrc_data_ind( ...@@ -289,12 +289,17 @@ mac_rrc_data_ind(
ue_context_p = rrc_eNB_get_ue_context(RC.rrc[ctxt.module_id],rntiP); ue_context_p = rrc_eNB_get_ue_context(RC.rrc[ctxt.module_id],rntiP);
if(ue_context_p) { if(ue_context_p) {
if( ue_context_p->ue_context.Status != RRC_RECONFIGURED){
LOG_E(RRC,"[eNB %d] Received C-RNTI ,but UE %x status(%d) not RRC_RECONFIGURED\n",module_idP,rntiP,ue_context_p->ue_context.Status);
return(-1);
}else{
rrc_eNB_generate_defaultRRCConnectionReconfiguration(&ctxt, rrc_eNB_generate_defaultRRCConnectionReconfiguration(&ctxt,
ue_context_p, ue_context_p,
0); 0);
ue_context_p->ue_context.Status = RRC_RECONFIGURED; ue_context_p->ue_context.Status = RRC_RECONFIGURED;
} }
} }
}
return(0); return(0);
} }
......
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