update it
This commit is contained in:
parent
fb9a5fe294
commit
fea47f9c74
|
@ -231,7 +231,7 @@ void emm_handle_authentication_response(
|
|||
d_assert(s1ap_send_to_enb(enb, s1apbuf) == CORE_OK,, "s1ap send error");
|
||||
}
|
||||
|
||||
void emm_handle_lo_create_session(mme_bearer_t *bearer)
|
||||
void emm_handle_create_session_response(mme_bearer_t *bearer)
|
||||
{
|
||||
status_t rv;
|
||||
mme_ue_t *ue = NULL;
|
||||
|
|
|
@ -14,7 +14,7 @@ CORE_DECLARE(void) emm_handle_attach_request(
|
|||
CORE_DECLARE(void) emm_handle_authentication_request(mme_ue_t *ue);
|
||||
CORE_DECLARE(void) emm_handle_authentication_response(
|
||||
mme_ue_t *ue, nas_authentication_response_t *authentication_response);
|
||||
CORE_DECLARE(void) emm_handle_lo_create_session(mme_bearer_t *bearer);
|
||||
CORE_DECLARE(void) emm_handle_create_session_response(mme_bearer_t *bearer);
|
||||
CORE_DECLARE(void) emm_handle_attach_complete(
|
||||
mme_ue_t *ue, nas_attach_complete_t *attach_complete);
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ void emm_state_operational(fsm_t *s, event_t *e)
|
|||
{
|
||||
break;
|
||||
}
|
||||
case MME_EVT_EMM_BEARER_LO_CREATE_SESSION:
|
||||
case MME_EVT_EMM_BEARER_FROM_S11:
|
||||
{
|
||||
index_t index = event_get_param1(e);
|
||||
mme_bearer_t *bearer = NULL;
|
||||
|
@ -51,7 +51,13 @@ void emm_state_operational(fsm_t *s, event_t *e)
|
|||
bearer = mme_bearer_find(index);
|
||||
d_assert(bearer, break, "No Bearer context");
|
||||
|
||||
emm_handle_lo_create_session(bearer);
|
||||
switch(event_get_param2(e))
|
||||
{
|
||||
case GTP_CREATE_SESSION_RESPONSE_TYPE:
|
||||
emm_handle_create_session_response(bearer);
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case MME_EVT_EMM_UE_FROM_S6A:
|
||||
|
|
|
@ -25,8 +25,6 @@ char* mme_event_get_name(event_t *e)
|
|||
|
||||
case MME_EVT_EMM_UE_MSG:
|
||||
return "MME_EVT_EMM_UE_MSG";
|
||||
case MME_EVT_EMM_BEARER_LO_CREATE_SESSION:
|
||||
return "MME_EVT_EMM_BEARER_LO_CREATE_SESSION";
|
||||
case MME_EVT_EMM_BEARER_LO_MODIFY_BEARER:
|
||||
return "MME_EVT_EMM_BEARER_LO_MODIFY_BEARER";
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ typedef enum {
|
|||
MME_EVT_S1AP_ENB_LO_CONNREFUSED,
|
||||
|
||||
MME_EVT_EMM_UE_MSG,
|
||||
MME_EVT_EMM_BEARER_LO_CREATE_SESSION,
|
||||
MME_EVT_EMM_BEARER_LO_MODIFY_BEARER,
|
||||
|
||||
MME_EVT_ESM_BEARER_MSG,
|
||||
|
@ -32,7 +31,7 @@ typedef enum {
|
|||
|
||||
MME_EVT_EMM_UE_FROM_S6A,
|
||||
MME_EVT_EMM_UE_TO_S6A,
|
||||
MME_EVT_EMM_UE_FROM_S11,
|
||||
MME_EVT_EMM_BEARER_FROM_S11,
|
||||
MME_EVT_EMM_UE_TO_S11,
|
||||
|
||||
MME_EVT_ESM_BEARER_FROM_S11,
|
||||
|
|
|
@ -77,8 +77,9 @@ void mme_s11_handle_create_session_response(
|
|||
d_info("[GTP] Create Session Response : "
|
||||
"MME[%d] <-- SGW[%d]", ue->mme_s11_teid, ue->sgw_s11_teid);
|
||||
|
||||
event_set(&e, MME_EVT_EMM_BEARER_LO_CREATE_SESSION);
|
||||
event_set(&e, MME_EVT_EMM_BEARER_FROM_S11);
|
||||
event_set_param1(&e, (c_uintptr_t)bearer->index);
|
||||
event_set_param2(&e, (c_uintptr_t)GTP_CREATE_SESSION_RESPONSE_TYPE);
|
||||
mme_event_send(&e);
|
||||
}
|
||||
|
||||
|
|
|
@ -144,9 +144,9 @@ void mme_state_operational(fsm_t *s, event_t *e)
|
|||
pkbuf_free(pkbuf);
|
||||
break;
|
||||
}
|
||||
case MME_EVT_EMM_UE_FROM_S6A:
|
||||
case MME_EVT_EMM_UE_MSG:
|
||||
case MME_EVT_EMM_BEARER_LO_CREATE_SESSION:
|
||||
case MME_EVT_EMM_UE_FROM_S6A:
|
||||
case MME_EVT_EMM_BEARER_FROM_S11:
|
||||
{
|
||||
nas_message_t message;
|
||||
index_t index = event_get_param1(e);
|
||||
|
@ -154,7 +154,7 @@ void mme_state_operational(fsm_t *s, event_t *e)
|
|||
mme_bearer_t *bearer = NULL;
|
||||
pkbuf_t *pkbuf = NULL;
|
||||
|
||||
if (event_get(e) == MME_EVT_EMM_BEARER_LO_CREATE_SESSION)
|
||||
if (event_get(e) == MME_EVT_EMM_BEARER_FROM_S11)
|
||||
{
|
||||
d_assert(index, break, "Null param");
|
||||
bearer = mme_bearer_find(index);
|
||||
|
|
Loading…
Reference in New Issue