mirror of
https://github.com/open5gs/open5gs.git
synced 2025-10-23 07:41:57 +00:00
[MME] emm-handler: Interpret unused Attach Type as EPS Attach
3GPP TS 24.301: "All other values are unused and shall be interpreted as "EPS attach", if received by the network".
This commit is contained in:
committed by
Sukchan Lee
parent
5d7d3e755f
commit
62f961bfbf
@@ -294,6 +294,7 @@ ED2(uint8_t spare:5;,
|
||||
* M V 1/2 */
|
||||
#define OGS_NAS_ATTACH_TYPE_EPS_ATTACH 1
|
||||
#define OGS_NAS_ATTACH_TYPE_COMBINED_EPS_IMSI_ATTACH 2
|
||||
#define OGS_NAS_ATTACH_TYPE_EPS_RLOS_ATTACH 3
|
||||
#define OGS_NAS_ATTACH_TYPE_EPS_EMERGENCY_ATTACH 6
|
||||
#define OGS_NAS_ATTACH_TYPE_RESERVED 7
|
||||
|
||||
|
@@ -108,9 +108,19 @@ int emm_handle_attach_request(enb_ue_t *enb_ue, mme_ue_t *mme_ue,
|
||||
case OGS_NAS_ATTACH_TYPE_EPS_EMERGENCY_ATTACH:
|
||||
ogs_debug(" Requested EPS_ATTACH_TYPE[3, EPS_EMERGENCY_ATTACH]");
|
||||
break;
|
||||
default:
|
||||
case OGS_NAS_ATTACH_TYPE_RESERVED:
|
||||
ogs_error(" Invalid Requested EPS_ATTACH_TYPE[%d]",
|
||||
mme_ue->nas_eps.attach.value);
|
||||
break;
|
||||
case OGS_NAS_ATTACH_TYPE_EPS_RLOS_ATTACH:
|
||||
/* fall-through: '"EPS RLOS attach" shall be interpreted as "EPS attach"
|
||||
* by a network not supporting attach for access to RLOS."'*/
|
||||
default:
|
||||
/* 'All other values are unused and shall be interpreted as "EPS attach",
|
||||
* if received by the network' */
|
||||
ogs_warn(" Requested EPS_ATTACH_TYPE[%d], assuming EPS_ATTACH",
|
||||
mme_ue->nas_eps.attach.value);
|
||||
mme_ue->nas_eps.attach.value = OGS_NAS_ATTACH_TYPE_EPS_ATTACH;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user