Remove RRC status: it is not needed
This commit is contained in:
@@ -284,7 +284,6 @@ typedef struct gNB_RRC_UE_s {
|
|||||||
NR_CipheringAlgorithm_t ciphering_algorithm;
|
NR_CipheringAlgorithm_t ciphering_algorithm;
|
||||||
e_NR_IntegrityProtAlgorithm integrity_algorithm;
|
e_NR_IntegrityProtAlgorithm integrity_algorithm;
|
||||||
|
|
||||||
NR_UE_STATE_t StatusRrc;
|
|
||||||
rnti_t rnti;
|
rnti_t rnti;
|
||||||
uint64_t random_ue_identity;
|
uint64_t random_ue_identity;
|
||||||
|
|
||||||
|
|||||||
@@ -477,7 +477,6 @@ static void rrc_gNB_process_RRCSetupComplete(const protocol_ctxt_t *const ctxt_p
|
|||||||
LOG_A(NR_RRC, "UE %d Processing NR_RRCSetupComplete from UE\n", ue_context_pP->ue_context.rrc_ue_id);
|
LOG_A(NR_RRC, "UE %d Processing NR_RRCSetupComplete from UE\n", ue_context_pP->ue_context.rrc_ue_id);
|
||||||
ue_context_pP->ue_context.Srb[1].Active = 1;
|
ue_context_pP->ue_context.Srb[1].Active = 1;
|
||||||
ue_context_pP->ue_context.Srb[2].Active = 0;
|
ue_context_pP->ue_context.Srb[2].Active = 0;
|
||||||
ue_context_pP->ue_context.StatusRrc = NR_RRC_CONNECTED;
|
|
||||||
AssertFatal(ctxt_pP->rntiMaybeUEid == ue_context_pP->ue_context.rrc_ue_id, "logic bug: inconsistent IDs, must use CU UE ID!\n");
|
AssertFatal(ctxt_pP->rntiMaybeUEid == ue_context_pP->ue_context.rrc_ue_id, "logic bug: inconsistent IDs, must use CU UE ID!\n");
|
||||||
|
|
||||||
rrc_gNB_send_NGAP_NAS_FIRST_REQ(ctxt_pP, ue_context_pP, rrcSetupComplete);
|
rrc_gNB_send_NGAP_NAS_FIRST_REQ(ctxt_pP, ue_context_pP, rrcSetupComplete);
|
||||||
@@ -935,7 +934,6 @@ static void rrc_gNB_process_RRCReestablishmentComplete(const protocol_ctxt_t *co
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
ue_p->xids[xid] = RRC_ACTION_NONE;
|
ue_p->xids[xid] = RRC_ACTION_NONE;
|
||||||
ue_p->StatusRrc = NR_RRC_CONNECTED;
|
|
||||||
|
|
||||||
ue_p->Srb[1].Active = 1;
|
ue_p->Srb[1].Active = 1;
|
||||||
|
|
||||||
@@ -2262,20 +2260,6 @@ static void print_rrc_meas(FILE *f, const NR_MeasResults_t *measresults)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *get_rrc_connection_status_text(NR_UE_STATE_t state)
|
|
||||||
{
|
|
||||||
switch (state) {
|
|
||||||
case NR_RRC_INACTIVE: return "inactive";
|
|
||||||
case NR_RRC_IDLE: return "idle";
|
|
||||||
case NR_RRC_SI_RECEIVED: return "SI-received";
|
|
||||||
case NR_RRC_CONNECTED: return "connected";
|
|
||||||
case NR_RRC_RECONFIGURED: return "reconfigured";
|
|
||||||
case NR_RRC_HO_EXECUTION: return "HO-execution";
|
|
||||||
default: AssertFatal(false, "illegal RRC state %d\n", state); return "illegal";
|
|
||||||
}
|
|
||||||
return "illegal";
|
|
||||||
}
|
|
||||||
|
|
||||||
static const char *get_pdusession_status_text(pdu_session_status_t status)
|
static const char *get_pdusession_status_text(pdu_session_status_t status)
|
||||||
{
|
{
|
||||||
switch (status) {
|
switch (status) {
|
||||||
@@ -2323,7 +2307,6 @@ static void write_rrc_stats(const gNB_RRC_INST *rrc)
|
|||||||
|
|
||||||
time_t last_seen = now - ue_ctxt->last_seen;
|
time_t last_seen = now - ue_ctxt->last_seen;
|
||||||
fprintf(f, " last RRC activity: %ld seconds ago\n", last_seen);
|
fprintf(f, " last RRC activity: %ld seconds ago\n", last_seen);
|
||||||
fprintf(f, " RRC status %s\n", get_rrc_connection_status_text(ue_ctxt->StatusRrc));
|
|
||||||
|
|
||||||
if (ue_ctxt->nb_of_pdusessions == 0)
|
if (ue_ctxt->nb_of_pdusessions == 0)
|
||||||
fprintf(f, " (no PDU sessions)\n");
|
fprintf(f, " (no PDU sessions)\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user