Introduce counters for reestablishment

This commit is contained in:
Luis Pereira
2023-03-10 12:37:02 +01:00
committed by Robert Schmidt
parent e76e6f1266
commit 6c6ce912b1
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -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;
+3
View File
@@ -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;