Commit 8b8ff65a authored by Wang He's avatar Wang He

Fix: eNB doesn't send RRCConnectionReestablishment message when ue context...

Fix: eNB doesn't send RRCConnectionReestablishment message when ue context cannot be found using new rnti
parent 2f8e4828
...@@ -163,8 +163,23 @@ mac_rrc_data_req( ...@@ -163,8 +163,23 @@ mac_rrc_data_req(
if( (Srb_id & RAB_OFFSET ) == CCCH) { if( (Srb_id & RAB_OFFSET ) == CCCH) {
struct rrc_eNB_ue_context_s *ue_context_p = rrc_eNB_get_ue_context(RC.rrc[Mod_idP],rnti); struct rrc_eNB_ue_context_s *ue_context_p = rrc_eNB_get_ue_context(RC.rrc[Mod_idP],rnti);
rnti_t old_rnti = 0;
if (ue_context_p == NULL) return(0); if (ue_context_p == NULL) {
for (uint16_t i = 0; i < MAX_MOBILES_PER_ENB; i++) {
if (reestablish_rnti_map[i][0] == rnti) {
old_rnti = reestablish_rnti_map[i][1];
break;
}
}
if (old_rnti != 0) {
ue_context_p = rrc_eNB_get_ue_context(RC.rrc[Mod_idP],old_rnti);
if (ue_context_p == NULL) {
return(0);
}
} else {
return(0);
}
}
eNB_RRC_UE_t *ue_p = &ue_context_p->ue_context; eNB_RRC_UE_t *ue_p = &ue_context_p->ue_context;
LOG_T(RRC,"[eNB %d] Frame %d CCCH request (Srb_id %d, rnti %x)\n",Mod_idP,frameP, Srb_id,rnti); LOG_T(RRC,"[eNB %d] Frame %d CCCH request (Srb_id %d, rnti %x)\n",Mod_idP,frameP, Srb_id,rnti);
......
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