[PATCH v2] broadband-modem-mbim: convert additional GMM error codes to mm errors.

pprabhu at chromium.org pprabhu at chromium.org
Mon Jun 16 14:52:44 PDT 2014


From: Prathmesh Prabhu <pprabhu at chromium.org>

diff --git a/src/mm-modem-helpers-mbim.c b/src/mm-modem-helpers-mbim.c
index 8060ace..900e1bb 100644
--- a/src/mm-modem-helpers-mbim.c
+++ b/src/mm-modem-helpers-mbim.c
@@ -227,6 +227,15 @@ mm_mobile_equipment_error_from_mbim_nw_error (MbimNwError nw_error)
         return g_error_new (MM_MOBILE_EQUIPMENT_ERROR,
                             MM_MOBILE_EQUIPMENT_ERROR_GPRS_CONGESTION,
                             "Congestion");
+    case MBIM_NW_ERROR_MISSING_OR_UNKNOWN_APN:
+        return g_error_new (MM_MOBILE_EQUIPMENT_ERROR,
+                            MM_MOBILE_EQUIPMENT_ERROR_GPRS_MISSING_OR_UNKNOWN_APN,
+                            "Missing or unknown APN");
+    case MBIM_NW_ERROR_REQUESTED_SERVICE_OPTION_NOT_SUBSCRIBED:
+        return g_error_new (MM_MOBILE_EQUIPMENT_ERROR,
+                            MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUBSCRIBED,
+                            "Requested service option not subscribed");
+
     default:
         return g_error_new (MM_MOBILE_EQUIPMENT_ERROR,
                             MM_MOBILE_EQUIPMENT_ERROR_GPRS_UNKNOWN,
-- 
2.0.0.526.g5318336



More information about the ModemManager-devel mailing list