[PATCH v2] modem-helpers-mbim: map more MbimNwError to MMMobileEquipmentError

Aleksander Morgado aleksander at aleksander.es
Thu Jun 19 09:09:12 PDT 2014


On Thu, Jun 19, 2014 at 6:01 PM, Ben Chan <benchan at chromium.org> wrote:
> 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
> ---

Pushed, thanks.

>  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
>
> _______________________________________________
> ModemManager-devel mailing list
> ModemManager-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/modemmanager-devel



-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list