From f157d02fc668777ccd7de559c6e1b8400c102412 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 16 Dec 2019 14:32:44 +0100 Subject: include,errors: define +CME ERROR code 151 equal to 171 When the MT detects an attempt to disconnect the last PDN or when the network returns a response message with cause value #49, the "Last PDN disconnection not allowed" error is returned. The numeric error code was changed from 151 to 171 in 3GPP Rel-11, and therefore there are devices out there that would conform to Rel-10 or below and that would report +CME ERROR code 151 instead of 171. Given that 151 isn't defined to a different meaning in the specs, let's define it in the same way as 171. --- include/ModemManager-errors.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/ModemManager-errors.h') diff --git a/include/ModemManager-errors.h b/include/ModemManager-errors.h index b0aa7299..656366d3 100644 --- a/include/ModemManager-errors.h +++ b/include/ModemManager-errors.h @@ -150,6 +150,7 @@ typedef enum { /*< underscore_name=mm_core_error >*/ * @MM_MOBILE_EQUIPMENT_ERROR_GPRS_UNKNOWN: Unspecified GPRS error. * @MM_MOBILE_EQUIPMENT_ERROR_GPRS_PDP_AUTH_FAILURE: PDP authentication failure. * @MM_MOBILE_EQUIPMENT_ERROR_GPRS_INVALID_MOBILE_CLASS: Invalid mobile class. + * @MM_MOBILE_EQUIPMENT_ERROR_GPRS_LAST_PDN_DISCONNECTION_NOT_ALLOWED_LEGACY: Last PDN disconnection not allowed (legacy value defined before 3GPP Rel-11). Since: 1.14. * @MM_MOBILE_EQUIPMENT_ERROR_GPRS_LAST_PDN_DISCONNECTION_NOT_ALLOWED: Last PDN disconnection not allowed. Since: 1.8. * @MM_MOBILE_EQUIPMENT_ERROR_GPRS_SEMANTICALLY_INCORRECT_MESSAGE: Semantically incorrect message. Since: 1.8. * @MM_MOBILE_EQUIPMENT_ERROR_GPRS_MANDATORY_IE_ERROR: Mandatory IE error. Since: 1.8. @@ -240,6 +241,7 @@ typedef enum { /*< underscore_name=mm_mobile_equipment_error >*/ MM_MOBILE_EQUIPMENT_ERROR_GPRS_UNKNOWN = 148, /*< nick=GprsUnknown >*/ MM_MOBILE_EQUIPMENT_ERROR_GPRS_PDP_AUTH_FAILURE = 149, /*< nick=GprsPdpAuthFailure >*/ MM_MOBILE_EQUIPMENT_ERROR_GPRS_INVALID_MOBILE_CLASS = 150, /*< nick=GprsInvalidMobileClass >*/ + MM_MOBILE_EQUIPMENT_ERROR_GPRS_LAST_PDN_DISCONNECTION_NOT_ALLOWED_LEGACY = 151, /*< nick=GprsLastPdnDisconnectionNotAllowedLegacy >*/ MM_MOBILE_EQUIPMENT_ERROR_GPRS_LAST_PDN_DISCONNECTION_NOT_ALLOWED = 171, /*< nick=GprsLastPdnDisconnectionNotAllowed >*/ MM_MOBILE_EQUIPMENT_ERROR_GPRS_SEMANTICALLY_INCORRECT_MESSAGE = 172, /*< nick=GprsSemanticallyIncorrectMessage >*/ MM_MOBILE_EQUIPMENT_ERROR_GPRS_MANDATORY_IE_ERROR = 173, /*< nick=GprsMandatoryIeError >*/ -- cgit v1.2.3-70-g09d2