summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-10-31 14:12:14 -0500
committerDan Williams <dcbw@redhat.com>2012-10-31 14:12:59 -0500
commita95ec833dc3d197590211b47f360f7cab006a64d (patch)
tree05d96aa9384451b11739cc34aeef55f5d851fa8b
parentb17a3d06fcc190b4c2601a61920ced7491cf76e5 (diff)
nas: add Get CDMA Position Info
Not sure what NAS version supports it, but at least NAS 1.3 is required.
-rw-r--r--data/qmi-service-nas.json42
-rw-r--r--libqmi-glib/qmi-enums-nas.h12
2 files changed, 53 insertions, 1 deletions
diff --git a/data/qmi-service-nas.json b/data/qmi-service-nas.json
index eb8b71c..49d5088 100644
--- a/data/qmi-service-nas.json
+++ b/data/qmi-service-nas.json
@@ -2727,5 +2727,45 @@
"id" : "0x15",
"mandatory" : "no",
"type" : "TLV",
- "format" : "gint8" } ] }
+ "format" : "gint8" } ] },
+
+ // *********************************************************************************
+ { "name" : "Get CDMA Position Info",
+ "type" : "Message",
+ "service" : "NAS",
+ "id" : "0x0065",
+ "version" : "1.3",
+ "output" : [ { "common-ref" : "Operation Result" },
+ { "name" : "CDMA Position Info",
+ "id" : "0x10",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "sequence",
+ "contents" : [ { "name" : "UI In Idle Mode",
+ "format" : "gint8" },
+ { "name" : "BaseStations",
+ "format" : "array",
+ "size-prefix-format" : "guint8",
+ "array-element" : { "name" : "BaseStation",
+ "format" : "struct",
+ "contents" : [ { "name" : "Pilot Type",
+ "format" : "guint32",
+ "public-format" : "QmiNasCdmaPilotType" },
+ { "name" : "System ID",
+ "format" : "guint16" },
+ { "name" : "Network ID",
+ "format" : "guint16" },
+ { "name" : "Base Station ID",
+ "format" : "guint16" },
+ { "name" : "Pilot PN",
+ "format" : "guint16" },
+ { "name" : "Pilot Strength",
+ "format" : "guint16" },
+ { "name" : "Latitude",
+ "format" : "gint32" },
+ { "name" : "Longitude",
+ "format" : "gint32" },
+ { "name" : "GPS Time In Milliseconds",
+ "format" : "guint64" } ] } } ],
+ "prerequisites": [ { "common-ref" : "Success" } ] } ] }
]
diff --git a/libqmi-glib/qmi-enums-nas.h b/libqmi-glib/qmi-enums-nas.h
index 1d6ac10..727a2a0 100644
--- a/libqmi-glib/qmi-enums-nas.h
+++ b/libqmi-glib/qmi-enums-nas.h
@@ -822,4 +822,16 @@ typedef enum {
QMI_NAS_SIM_REJECT_STATE_SIM_CS_PS_INVALID = 4
} QmiNasSimRejectState;
+/**
+ * QmiNasCdmaPilotType:
+ * @QMI_NAS_CDMA_PILOT_TYPE_ACTIVE: the pilot is part of the active set.
+ * @QMI_NAS_CDMA_PILOT_TYPE_NEIGHBOR: the pilot is part of the neighbor set.
+ *
+ * The pilot set the pilot belongs to.
+ */
+typedef enum {
+ QMI_NAS_CDMA_PILOT_TYPE_ACTIVE = 0,
+ QMI_NAS_CDMA_PILOT_TYPE_NEIGHBOR = 1,
+} QmiNasCdmaPilotType;
+
#endif /* _LIBQMI_GLIB_QMI_ENUMS_NAS_H_ */