Patch: add support for qmi_wds_get/set_default_profile_num
Wolfgang Tolkien
w at tolkien.email
Wed Jun 27 18:11:41 UTC 2018
According to QMI spec 1.38. Does anybody know what profile family 'embedded' vs. 'tethered' means?
---
diff --git a/data/qmi-service-wds.json b/data/qmi-service-wds.json
index 3c25d3d..bc3db96 100644
--- a/data/qmi-service-wds.json
+++ b/data/qmi-service-wds.json
@@ -1546,6 +1546,57 @@
"format" : "guint32" } ] } ] },
// *********************************************************************************
+ { "name" : "Get Default Profile Num",
+ "type" : "Message",
+ "service" : "WDS",
+ "id" : "0x0049",
+ "version" : "1.38",
+ "since" : "1.8",
+ "input" : [ { "name" : "Profile Type",
+ "id" : "0x01",
+ "mandatory" : "yes",
+ "type" : "TLV",
+ "since" : "1.8",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Profile Type",
+ "format" : "guint8",
+ "public-format" : "QmiWdsProfileType"},
+ { "name" : "Profile Family",
+ "format" : "guint8",
+ "public-format" : "QmiWdsProfileFamily"}] }],
+ "output" : [ { "common-ref" : "Operation Result" },
+ { "name" : "Default Profile Number",
+ "id" : "0x01",
+ "mandatory" : "yes",
+ "type" : "TLV",
+ "since" : "1.8",
+ "format" : "guint8",
+ "prerequisites" : [ { "common-ref" : "Success" } ] } ] },
+
+ // *********************************************************************************
+ { "name" : "Set Default Profile Num",
+ "type" : "Message",
+ "service" : "WDS",
+ "id" : "0x004A",
+ "version" : "1.38",
+ "since" : "1.8",
+ "input" : [ { "name" : "Profile Identifier",
+ "id" : "0x01",
+ "mandatory" : "yes",
+ "type" : "TLV",
+ "since" : "1.8",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Profile Type",
+ "format" : "guint8",
+ "public-format" : "QmiWdsProfileType"},
+ { "name" : "Profile Family",
+ "format" : "guint8",
+ "public-format" : "QmiWdsProfileFamily"},
+ { "name" : "Profile Index",
+ "format" : "guint8"}] }],
+ "output" : [ { "common-ref" : "Operation Result" } ] },
+
+ // *********************************************************************************
{ "name" : "Set IP Family",
"type" : "Message",
"service" : "WDS",
diff --git a/src/libqmi-glib/qmi-enums-wds.h b/src/libqmi-glib/qmi-enums-wds.h
index f1f84c0..b010318 100644
--- a/src/libqmi-glib/qmi-enums-wds.h
+++ b/src/libqmi-glib/qmi-enums-wds.h
@@ -1297,6 +1297,22 @@ typedef enum { /*< underscore_name=qmi_wds_profile_type >*/
QMI_WDS_PROFILE_TYPE_3GPP2 = 1
} QmiWdsProfileType;
+
+/**
+ * QmiWdsProfileFamily:
+ * @QMI_WDS_PROFILE_FAMILY_EMBEDDED: Embedded profile family.
+ * @QMI_WDS_PROFILE_FAMILY_TETHERED: Tethered profile family.
+ *
+ * Profile family.
+ *
+ * Since: 1.8
+ */
+typedef enum { /*< underscore_name=qmi_wds_profile_family >*/
+ QMI_WDS_PROFILE_FAMILY_EMBEDDED = 0,
+ QMI_WDS_PROFILE_FAMILY_TETHERED = 1
+} QmiWdsProfileFamily;
+
+
/**
* qmi_wds_profile_type_get_string:
*
More information about the libqmi-devel
mailing list