Commit 6c1d04ee authored by Chieh-Chun Chen's avatar Chieh-Chun Chen

Fix: save plmn info in RRCSetupComplete

parent 4e1af0d1
...@@ -1439,6 +1439,12 @@ static int handle_rrcSetupComplete(const protocol_ctxt_t *const ctxt_pP, ...@@ -1439,6 +1439,12 @@ static int handle_rrcSetupComplete(const protocol_ctxt_t *const ctxt_pP,
} }
} }
// TODO: need to handle multiple PLMN in RRC Connection Setup Complete
UE->ue_guami.mcc = RC.nrrrc[0]->configuration.mcc[0];
UE->ue_guami.mnc = RC.nrrrc[0]->configuration.mnc[0];
UE->ue_guami.mnc_len = RC.nrrrc[0]->configuration.mnc_digit_length[0];
// LOG_W(NR_RRC, "mcc %d, mnc %d, mnc_len %d\n", UE->ue_guami.mcc, UE->ue_guami.mnc, UE->ue_guami.mnc_len);
rrc_gNB_process_RRCSetupComplete(ctxt_pP, ue_context_p, setup_complete->criticalExtensions.choice.rrcSetupComplete); rrc_gNB_process_RRCSetupComplete(ctxt_pP, ue_context_p, setup_complete->criticalExtensions.choice.rrcSetupComplete);
LOG_I(NR_RRC, PROTOCOL_NR_RRC_CTXT_UE_FMT " UE State = NR_RRC_CONNECTED \n", PROTOCOL_NR_RRC_CTXT_UE_ARGS(ctxt_pP)); LOG_I(NR_RRC, PROTOCOL_NR_RRC_CTXT_UE_FMT " UE State = NR_RRC_CONNECTED \n", PROTOCOL_NR_RRC_CTXT_UE_ARGS(ctxt_pP));
return 0; return 0;
......
...@@ -207,6 +207,9 @@ rrc_gNB_send_NGAP_NAS_FIRST_REQ( ...@@ -207,6 +207,9 @@ rrc_gNB_send_NGAP_NAS_FIRST_REQ(
/* selected_plmn_identity: IE is 1-based, convert to 0-based (C array) */ /* selected_plmn_identity: IE is 1-based, convert to 0-based (C array) */
int selected_plmn_identity = rrcSetupComplete->selectedPLMN_Identity - 1; int selected_plmn_identity = rrcSetupComplete->selectedPLMN_Identity - 1;
req->selected_plmn_identity = selected_plmn_identity; req->selected_plmn_identity = selected_plmn_identity;
req->ue_identity.guami.mcc = UE->ue_guami.mcc;
req->ue_identity.guami.mnc = UE->ue_guami.mnc;
req->ue_identity.guami.mnc_len = UE->ue_guami.mnc_len;
if (rrcSetupComplete->registeredAMF != NULL) { if (rrcSetupComplete->registeredAMF != NULL) {
NR_RegisteredAMF_t *r_amf = rrcSetupComplete->registeredAMF; NR_RegisteredAMF_t *r_amf = rrcSetupComplete->registeredAMF;
......
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