Commit dcba8c19 authored by gauthier's avatar gauthier

Sent of S_TMSI OK

parent c7483721
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
# include "RRC/LITE/defs.h" # include "RRC/LITE/defs.h"
# include "rrc_eNB_UE_context.h" # include "rrc_eNB_UE_context.h"
# include "rrc_eNB_S1AP.h" # include "rrc_eNB_S1AP.h"
# include "enb_config.h"
# if defined(ENABLE_ITTI) # if defined(ENABLE_ITTI)
# include "asn1_conversions.h" # include "asn1_conversions.h"
...@@ -670,6 +671,7 @@ rrc_eNB_send_S1AP_NAS_FIRST_REQ( ...@@ -670,6 +671,7 @@ rrc_eNB_send_S1AP_NAS_FIRST_REQ(
if (rrcConnectionSetupComplete->registeredMME != NULL) { if (rrcConnectionSetupComplete->registeredMME != NULL) {
/* Fill GUMMEI */ /* Fill GUMMEI */
struct RegisteredMME *r_mme = rrcConnectionSetupComplete->registeredMME; struct RegisteredMME *r_mme = rrcConnectionSetupComplete->registeredMME;
int selected_plmn_identity = rrcConnectionSetupComplete->selectedPLMN_Identity;
S1AP_NAS_FIRST_REQ (message_p).ue_identity.presenceMask |= UE_IDENTITIES_gummei; S1AP_NAS_FIRST_REQ (message_p).ue_identity.presenceMask |= UE_IDENTITIES_gummei;
...@@ -691,6 +693,13 @@ rrc_eNB_send_S1AP_NAS_FIRST_REQ( ...@@ -691,6 +693,13 @@ rrc_eNB_send_S1AP_NAS_FIRST_REQ(
S1AP_NAS_FIRST_REQ (message_p).ue_identity.gummei.mnc, S1AP_NAS_FIRST_REQ (message_p).ue_identity.gummei.mnc,
ue_context_pP->ue_context.rnti); ue_context_pP->ue_context.rnti);
} }
} else {
const Enb_properties_array_t *enb_properties_p = NULL;
enb_properties_p = enb_config_get();
// actually the eNB configuration contains only one PLMN (can be up to 6)
S1AP_NAS_FIRST_REQ (message_p).ue_identity.gummei.mcc = enb_properties_p->properties[ctxt_pP->module_id]->mcc;
S1AP_NAS_FIRST_REQ (message_p).ue_identity.gummei.mnc = enb_properties_p->properties[ctxt_pP->module_id]->mnc;
} }
S1AP_NAS_FIRST_REQ (message_p).ue_identity.gummei.mme_code = BIT_STRING_to_uint8 (&r_mme->mmec); S1AP_NAS_FIRST_REQ (message_p).ue_identity.gummei.mme_code = BIT_STRING_to_uint8 (&r_mme->mmec);
......
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