[PATCH] libmbim-glib: add MBIM_READY_INFO_FLAG_NONE to MbimReadyInfoFlag
Aleksander Morgado
aleksander at aleksander.es
Tue Jun 27 08:14:48 UTC 2017
On 27/06/17 09:15, Ben Chan wrote:
> According to MBIM spec Rev 1.0 Errata-1 Table 10-17, a value 0 of the
> ReadyInfo field in MBIM_SUBSCRIBER_READY_INFO refers to
> MBIMReadyInfoFlagsNone and indicates that the device is in normal mode.
>
> This patch adds MBIM_READY_INFO_FLAG_NONE (0) to the MbimReadyInfoFlag
> enum, such that `mbimcli --query-subscriber-ready-info` shows 'Ready
> info' as 'none' instead of 'unknown' when the ReadyInfo field is 0.
> ---
Pushed to git master, mbim-1-14 and mbim-1-12; thanks
> src/libmbim-glib/mbim-enums.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/libmbim-glib/mbim-enums.h b/src/libmbim-glib/mbim-enums.h
> index fd3d994..43eef6a 100644
> --- a/src/libmbim-glib/mbim-enums.h
> +++ b/src/libmbim-glib/mbim-enums.h
> @@ -196,9 +196,11 @@ typedef enum {
>
> /**
> * MbimReadyInfoFlag:
> + * @MBIM_READY_INFO_FLAG_NONE: Device in normal mode.
> * @MBIM_READY_INFO_FLAG_PROTECT_UNIQUE_ID: Request to avoid displaying subscriber ID.
> */
> typedef enum {
> + MBIM_READY_INFO_FLAG_NONE = 0,
> MBIM_READY_INFO_FLAG_PROTECT_UNIQUE_ID = 1 << 0
> } MbimReadyInfoFlag;
>
>
--
Aleksander
https://aleksander.es
More information about the libmbim-devel
mailing list