From dd06d77b5dc2ccff207cc8e264f190243331ee58 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 10 Sep 2019 20:30:55 +0200 Subject: sgsn: Don't send Attach Accept if initial LU is rejected This should fix TTCN3, SGSN_Tests.TC_attach_gsup_lu_reject, wher eit can be seen that before this patch SGSN sent Attach Accept before sending/receing the first LU (so if LU was rejected by HLR, then attach was already accepted). Similary, it also fixes SGSN_Tests.TC_attach_gsup_lu_reject. Change-Id: Ie3970a790cf2b674da4d9e23a83c4a65d27d5de4 --- include/osmocom/sgsn/gprs_gmm_attach.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/osmocom/sgsn/gprs_gmm_attach.h b/include/osmocom/sgsn/gprs_gmm_attach.h index 0aa2123a8..10d62f3d6 100644 --- a/include/osmocom/sgsn/gprs_gmm_attach.h +++ b/include/osmocom/sgsn/gprs_gmm_attach.h @@ -11,6 +11,7 @@ enum gmm_attach_req_fsm_states { ST_RETRIEVE_AUTH, ST_AUTH, ST_ASK_VLR, + ST_WAIT_UPDATE_LOCATION, ST_IU_SECURITY_CMD, ST_ACCEPT, ST_REJECT @@ -25,6 +26,7 @@ enum gmm_attach_req_fsm_events { E_ATTACH_ACCEPTED, E_ATTACH_ACCEPT_SENT, E_ATTACH_COMPLETE_RECV, + E_UPDATE_LOCATION_RESP_RECV_SUCCESS, E_REJECT, E_VLR_ANSWERED, }; -- cgit v1.2.3