handling 1st digit of mnc in SIB1

During preparation of SIB1, first digit of MNC was not taking into account.
This leads to XRES*, RES* mismatch during Authentication Procedure between 5GCore and UE because of derived serving network names.
This commit is contained in:
batuhan duyuler
2024-10-29 16:43:26 +01:00
parent 6c1d94a321
commit edeb7b8f61
+1 -1
View File
@@ -2209,7 +2209,7 @@ NR_BCCH_DL_SCH_Message_t *get_SIB1_NR(const NR_ServingCellConfigCommon_t *scc,
int mnc = plmn->mnc;
if (plmn->mnc_digit_length == 3) {
asn1cSequenceAdd(nr_plmn->mnc.list, NR_MCC_MNC_Digit_t, mnc0);
*mnc0 = (0 / 100) % 10;
*mnc0 = (mnc / 100) % 10;
}
asn1cSequenceAdd(nr_plmn->mnc.list, NR_MCC_MNC_Digit_t, mnc1);
*mnc1 = (mnc / 10) % 10;