[PATCH] libmbim-glib: add MBIM_READY_INFO_FLAG_NONE to MbimReadyInfoFlag
Ben Chan
benchan at chromium.org
Tue Jun 27 07:15:01 UTC 2017
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.
---
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;
--
2.13.1.611.g7e3b11ae1-goog
More information about the libmbim-devel
mailing list