[PATCH v2] modem-helpers-mbim: map more MbimNwError to MMMobileEquipmentError
Ben Chan
benchan at chromium.org
Thu Jun 19 09:01:28 PDT 2014
From: Prathmesh Prabhu <pprabhu at chromium.org>
Commit 55e40ea b1ae81a in libmbim ("libmbim-glib: add additional GMM
cause codes to MbimNwError") added one more GMM cause code to
MbimNwError. This patch maps that to MMMobileEquipmentError.
This patch requires libmbim >= 1.9.0
---
src/mm-modem-helpers-mbim.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mm-modem-helpers-mbim.c b/src/mm-modem-helpers-mbim.c
index b819c29..36d5502 100644
--- a/src/mm-modem-helpers-mbim.c
+++ b/src/mm-modem-helpers-mbim.c
@@ -239,6 +239,10 @@ mm_mobile_equipment_error_from_mbim_nw_error (MbimNwError nw_error)
return g_error_new (MM_MOBILE_EQUIPMENT_ERROR,
MM_MOBILE_EQUIPMENT_ERROR_GPRS_USER_AUTHENTICATION_FAILED,
"Not authorized for this CSG");
+ 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_SERVICE_OPTION_NOT_SUPPORTED:
return g_error_new (MM_MOBILE_EQUIPMENT_ERROR,
MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUPPORTED,
--
2.0.0.526.g5318336
More information about the ModemManager-devel
mailing list