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

Prathmesh Prabhu Chromium pprabhu at chromium.org
Mon Jun 16 14:54:52 PDT 2014


Hi,

This patch can only be pushed after the corresponding libmbim patch:
http://lists.freedesktop.org/archives/modemmanager-devel/2014-June/001282.html

Thanks,
Prathmesh



On Mon, Jun 16, 2014 at 2:52 PM, <pprabhu at chromium.org> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/modemmanager-devel/attachments/20140616/69b3b7b5/attachment.html>


More information about the ModemManager-devel mailing list