Introduce counters for reestablishment
This commit is contained in:
committed by
Robert Schmidt
parent
e76e6f1266
commit
6c6ce912b1
@@ -384,7 +384,8 @@ typedef struct gNB_RRC_UE_s {
|
||||
uint8_t established_pdu_sessions_flag;
|
||||
uint32_t ue_rrc_inactivity_timer;
|
||||
int8_t reestablishment_xid;
|
||||
//------------------------------------------------------------------------------//
|
||||
uint32_t ue_reestablishment_counter;
|
||||
uint32_t ue_reconfiguration_after_reestablishment_counter;
|
||||
NR_CellGroupId_t cellGroupId;
|
||||
struct NR_SpCellConfig *spCellConfig;
|
||||
struct NR_CellGroupConfig__sCellToAddModList *sCellconfig;
|
||||
|
||||
@@ -1246,6 +1246,7 @@ rrc_gNB_process_RRCReconfigurationComplete(
|
||||
for (int i = 0; i < MAX_MOBILES_PER_GNB; i++) {
|
||||
nr_reestablish_rnti_map_t *nr_reestablish_rnti_map = &(RC.nrrrc[ctxt_pP->module_id])->nr_reestablish_rnti_map[i];
|
||||
if (nr_reestablish_rnti_map->ue_id == ctxt_pP->rntiMaybeUEid) {
|
||||
ue_context_pP->ue_context.ue_reconfiguration_after_reestablishment_counter++;
|
||||
reestablish_ue_id = nr_reestablish_rnti_map[i].c_rnti;
|
||||
LOG_D(NR_RRC, "Removing reestablish_rnti_map[%d] UEid %lx, RNTI %04x\n", i, nr_reestablish_rnti_map->ue_id, nr_reestablish_rnti_map->c_rnti);
|
||||
// clear current C-RNTI from map
|
||||
@@ -2682,6 +2683,8 @@ rrc_gNB_decode_dcch(
|
||||
|
||||
gNB_MAC_INST *nrmac = RC.nrmac[ctxt_pP->module_id]; // WHAT A BEAUTIFULL RACE CONDITION !!!
|
||||
mac_remove_nr_ue(nrmac, reestablish_rnti);
|
||||
|
||||
ue_context_p->ue_context.ue_reestablishment_counter++;
|
||||
}
|
||||
|
||||
// ue_context_p->ue_context.ue_release_timer = 0;
|
||||
|
||||
Reference in New Issue
Block a user