Skip to content

Commit d595cd1

Browse files
committed
Merge branch 'rsarwad_handle_mbr_in_s8' of https://github.com/rsarwad/magma into rsarwad_handle_dsr_in_s8_task
Signed-off-by: rashmi <[email protected]>
2 parents 7681715 + d3d659e commit d595cd1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lte/gateway/c/oai/tasks/mme_app/mme_config.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -958,10 +958,10 @@ int mme_config_parse_file(mme_config_t* config_pP) {
958958
// Convert to 3gpp PLMN (MCC and MNC) format
959959
// First 3 chars in astring is MCC next 3 or 2 chars is MNC
960960
memcpy(fed_mode_mcc, astring, MAX_MCC_LENGTH);
961-
fed_mode_mcc[MAX_MCC_LENGTH] = '\0'; // null terminated string
962-
n = strlen(astring) - MAX_MCC_LENGTH;
961+
fed_mode_mcc[MAX_MCC_LENGTH] = '\0'; // null terminated string
962+
n = strlen(astring) - MAX_MCC_LENGTH;
963963
memcpy(fed_mode_mnc, astring + MAX_MCC_LENGTH, n);
964-
fed_mode_mnc[n] = '\0'; // null terminated string
964+
fed_mode_mnc[n] = '\0'; // null terminated string
965965
AssertFatal(
966966
strlen(fed_mode_mcc) == MAX_MCC_LENGTH,
967967
"Bad MCC length (%ld), it must be %u digit ex: 001\n",

lte/gateway/c/oai/tasks/sgw_s8/sgw_s8_handlers.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ void sgw_s8_handle_s11_create_session_request(
267267
memcpy(
268268
new_sgw_eps_context->imsi.digit, session_req_pP->imsi.digit,
269269
IMSI_BCD_DIGITS_MAX);
270-
new_sgw_eps_context->imsi64 = imsi64;
270+
new_sgw_eps_context->imsi.length = session_req_pP->imsi.length;
271+
new_sgw_eps_context->imsi64 = imsi64;
271272

272273
new_sgw_eps_context->imsi_unauthenticated_indicator = 1;
273274
new_sgw_eps_context->mme_teid_S11 = session_req_pP->sender_fteid_for_cp.teid;

0 commit comments

Comments
 (0)