aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrathmesh Prabhu <pprabhu@chromium.org>2014-06-19 09:01:28 -0700
committerAleksander Morgado <aleksander@aleksander.es>2014-06-19 18:05:48 +0200
commit699a25b802f6e18c5c00e4573ac5e3febe9b0093 (patch)
tree63014e0e127f2fe108bb7e32f78dfe9eef17574b
parent6491d82655ac0ac9dacc6abd4c24f51e3e93443b (diff)
modem-helpers-mbim: map more MbimNwError to MMMobileEquipmentError
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
-rw-r--r--src/mm-modem-helpers-mbim.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mm-modem-helpers-mbim.c b/src/mm-modem-helpers-mbim.c
index b819c298..36d55023 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,