summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkash Aggarwal <quic_akasagga@quicinc.com>2022-11-17 11:45:20 +0530
committerAleksander Morgado <aleksander@aleksander.es>2022-11-22 09:35:41 +0000
commit9e9d54e6c98566ebf56d893de5f6162809f2648a (patch)
tree5d8bde761ccbf9c26b2f7f9bd86f409a457ae3a2
parentcfbd925e537b34da32af41cd79ea1c9ed34a14c1 (diff)
downloadlibqmi-9e9d54e6c98566ebf56d893de5f6162809f2648a.tar.gz
wds: add WDS messages to register and listen for profile change events
-rw-r--r--data/qmi-collection-basic.json2
-rw-r--r--data/qmi-service-wds.json48
-rw-r--r--docs/reference/libqmi-glib/libqmi-glib-common.sections5
-rw-r--r--docs/reference/libqmi-glib/libqmi-glib-docs.xml2
-rw-r--r--src/libqmi-glib/qmi-enums-wds.h26
5 files changed, 81 insertions, 2 deletions
diff --git a/data/qmi-collection-basic.json b/data/qmi-collection-basic.json
index 9e2a3df4..6ba19f82 100644
--- a/data/qmi-collection-basic.json
+++ b/data/qmi-collection-basic.json
@@ -109,6 +109,8 @@
"QMI_MESSAGE_WDS_SET_LTE_ATTACH_PDN_LIST",
"QMI_MESSAGE_WDS_INDICATION_REGISTER",
"QMI_INDICATION_WDS_EXTENDED_IP_CONFIG",
+ "QMI_MESSAGE_WDS_CONFIGURE_PROFILE_EVENT_LIST",
+ "QMI_INDICATION_WDS_PROFILE_CHANGED",
"QMI_MESSAGE_WDA_GET_DATA_FORMAT",
"QMI_MESSAGE_WDA_SET_DATA_FORMAT",
diff --git a/data/qmi-service-wds.json b/data/qmi-service-wds.json
index 39368477..f6cbd357 100644
--- a/data/qmi-service-wds.json
+++ b/data/qmi-service-wds.json
@@ -728,6 +728,13 @@
"type" : "TLV",
"since" : "1.32",
"format" : "guint8",
+ "public-format" : "gboolean" },
+ { "name" : "Report Profile Changes",
+ "id" : "0x19",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "since" : "1.34",
+ "format" : "guint8",
"public-format" : "gboolean" } ],
"output" : [ { "common-ref" : "Operation Result" } ] },
@@ -2247,6 +2254,47 @@
"output" : [ { "common-ref" : "Operation Result" } ] },
// *********************************************************************************
+ { "name" : "Configure Profile Event List",
+ "type" : "Message",
+ "service" : "WDS",
+ "id" : "0x00A7",
+ "since" : "1.34",
+ "input" : [ { "name" : "Register",
+ "id" : "0x10",
+ "type" : "TLV",
+ "since" : "1.34",
+ "format" : "array",
+ "size-prefix-format" : "guint8",
+ "array-element" : { "name" : "Element",
+ "format" : "struct",
+ "contents" : [ { "name" : "Profile Type",
+ "format" : "guint8",
+ "public-format" : "QmiWdsProfileType" },
+ { "name" : "Profile Index",
+ "format" : "guint8" } ] } } ],
+ "output" : [ { "common-ref" : "Operation Result" } ] },
+
+// *********************************************************************************
+ { "name" : "Profile Changed",
+ "type" : "Indication",
+ "service" : "WDS",
+ "id" : "0x00A8",
+ "since" : "1.34",
+ "output" : [ { "name" : "Profile Event",
+ "id" : "0x10",
+ "type" : "TLV",
+ "since" : "1.34",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Profile Type",
+ "format" : "guint8",
+ "public-format" : "QmiWdsProfileType" },
+ { "name" : "Profile Index",
+ "format" : "guint8" },
+ { "name" : "Change Event",
+ "format" : "guint8",
+ "public-format" : "QmiWdsProfileChangeEvent" } ] } ] },
+
+// *********************************************************************************
{ "name" : "Swi Create Profile Indexed",
"type" : "Message",
"service" : "WDS",
diff --git a/docs/reference/libqmi-glib/libqmi-glib-common.sections b/docs/reference/libqmi-glib/libqmi-glib-common.sections
index 8d31ddeb..d9f680fd 100644
--- a/docs/reference/libqmi-glib/libqmi-glib-common.sections
+++ b/docs/reference/libqmi-glib/libqmi-glib-common.sections
@@ -715,6 +715,7 @@ QmiWdsAttachPdnListAction
QmiWdsClientType
QmiWdsIpSupportType
QmiWdsApnTypeMask
+QmiWdsProfileChangeEvent
QMI_WDS_RATE_UNAVAILABLE
<SUBSECTION Methods>
qmi_wds_ip_family_get_string
@@ -771,6 +772,7 @@ qmi_wds_attach_pdn_list_action_get_string
qmi_wds_client_type_get_string
qmi_wds_ip_support_type_get_string
qmi_wds_apn_type_mask_build_string_from_mask
+qmi_wds_profile_change_event_get_string
<SUBSECTION Private>
qmi_wds_ip_family_build_string_from_mask
qmi_wds_profile_family_build_string_from_mask
@@ -825,6 +827,7 @@ qmi_wds_attach_pdn_list_action_build_string_from_mask
qmi_wds_client_type_build_string_from_mask
qmi_wds_ip_support_type_build_string_from_mask
qmi_wds_apn_type_mask_get_string
+qmi_wds_profile_change_event_build_string_from_mask
<SUBSECTION Standard>
QMI_TYPE_WDS_AUTHENTICATION
QMI_TYPE_WDS_AUTOCONNECT_SETTING
@@ -879,6 +882,7 @@ QMI_TYPE_WDS_ATTACH_PDN_LIST_ACTION
QMI_TYPE_WDS_CLIENT_TYPE
QMI_TYPE_WDS_IP_SUPPORT_TYPE
QMI_TYPE_WDS_APN_TYPE_MASK
+QMI_TYPE_WDS_PROFILE_CHANGE_EVENT
qmi_wds_authentication_get_type
qmi_wds_autoconnect_setting_get_type
qmi_wds_autoconnect_setting_roaming_get_type
@@ -932,6 +936,7 @@ qmi_wds_attach_pdn_list_action_get_type
qmi_wds_client_type_get_type
qmi_wds_ip_support_type_get_type
qmi_wds_apn_type_mask_get_type
+qmi_wds_profile_change_event_get_type
</SECTION>
<SECTION>
diff --git a/docs/reference/libqmi-glib/libqmi-glib-docs.xml b/docs/reference/libqmi-glib/libqmi-glib-docs.xml
index 567174b3..f20b2049 100644
--- a/docs/reference/libqmi-glib/libqmi-glib-docs.xml
+++ b/docs/reference/libqmi-glib/libqmi-glib-docs.xml
@@ -197,6 +197,7 @@
<xi:include href="xml/qmi-indication-wds-packet-service-status.xml"/>
<xi:include href="xml/qmi-indication-wds-set-lte-attach-pdn-list.xml"/>
<xi:include href="xml/qmi-indication-wds-extended-ip-config.xml"/>
+ <xi:include href="xml/qmi-indication-wds-profile-changed.xml"/>
</section>
<section>
<title>WDS Requests</title>
@@ -234,6 +235,7 @@
<xi:include href="xml/qmi-message-wds-get-channel-rates.xml"/>
<xi:include href="xml/qmi-message-wds-swi-create-profile-indexed.xml"/>
<xi:include href="xml/qmi-message-wds-indication-register.xml"/>
+ <xi:include href="xml/qmi-message-wds-configure-profile-event-list.xml"/>
</section>
</chapter>
diff --git a/src/libqmi-glib/qmi-enums-wds.h b/src/libqmi-glib/qmi-enums-wds.h
index a92bef76..98fe18f1 100644
--- a/src/libqmi-glib/qmi-enums-wds.h
+++ b/src/libqmi-glib/qmi-enums-wds.h
@@ -1332,14 +1332,18 @@ typedef enum { /*< since=1.0 >*/
* QmiWdsProfileType:
* @QMI_WDS_PROFILE_TYPE_3GPP: 3GPP profile type.
* @QMI_WDS_PROFILE_TYPE_3GPP2: 3GPP2 profile type.
+ * @QMI_WDS_PROFILE_TYPE_EPC: EPC profile type. Since 1.34.
+ * @QMI_WDS_PROFILE_TYPE_ALL: All technologies profile type. Since 1.34.
*
* Profile network type family.
*
* Since: 1.0
*/
typedef enum { /*< since=1.0 >*/
- QMI_WDS_PROFILE_TYPE_3GPP = 0,
- QMI_WDS_PROFILE_TYPE_3GPP2 = 1
+ QMI_WDS_PROFILE_TYPE_3GPP = 0,
+ QMI_WDS_PROFILE_TYPE_3GPP2 = 1,
+ QMI_WDS_PROFILE_TYPE_EPC = 2,
+ QMI_WDS_PROFILE_TYPE_ALL = 255
} QmiWdsProfileType;
/**
@@ -1896,4 +1900,22 @@ typedef enum { /*< since=1.28 >*/
QMI_WDS_IP_SUPPORT_TYPE_IPV4V6 = 2,
} QmiWdsIpSupportType;
+/**
+ * QmiWdsProfileChangeEvent:
+ * @QMI_WDS_PROFILE_CREATE_EVENT: create profile event.
+ * @QMI_WDS_PROFILE_DELETE_EVENT: delete profile event.
+ * @QMI_WDS_PROFILE_MODIFY_EVENT: modify profile event.
+ * @QMI_WDS_PROFILE_SUBSCRIPTION_CHANGE_EVENT: subscription changed event.
+ *
+ * Profile change event.
+ *
+ * Since: 1.34
+ */
+typedef enum { /*< since=1.34 >*/
+ QMI_WDS_PROFILE_CREATE_EVENT = 1,
+ QMI_WDS_PROFILE_DELETE_EVENT = 2,
+ QMI_WDS_PROFILE_MODIFY_EVENT = 3,
+ QMI_WDS_PROFILE_SUBSCRIPTION_CHANGE_EVENT = 4
+} QmiWdsProfileChangeEvent;
+
#endif /* _LIBQMI_GLIB_QMI_ENUMS_WDS_H_ */