diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2014-05-27 20:03:13 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2014-05-28 12:39:44 +0200 |
commit | 804526f6788d5adc49d26b99379a04eb9ee69242 (patch) | |
tree | 9e3717c57a796753c61dee9c4c8e3540c9006afe | |
parent | 30550dca33d8450d58d2edc047f8ac8b2034f891 (diff) |
nas: add missing TLV field
-rw-r--r-- | data/qmi-service-nas.json | 2 | ||||
-rw-r--r-- | src/qmicli/qmicli-nas.c | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/data/qmi-service-nas.json b/data/qmi-service-nas.json index 304cc4e..da0934b 100644 --- a/data/qmi-service-nas.json +++ b/data/qmi-service-nas.json @@ -1405,6 +1405,8 @@ "format" : "guint16" }, { "name" : "Base Station ID", "format" : "guint16" }, + { "name" : "Reference PN", + "format" : "guint16" }, { "name" : "Latitude", "format" : "guint32" }, { "name" : "Longitude", diff --git a/src/qmicli/qmicli-nas.c b/src/qmicli/qmicli-nas.c index 6cfbd5c..8dc5489 100644 --- a/src/qmicli/qmicli-nas.c +++ b/src/qmicli/qmicli-nas.c @@ -2242,6 +2242,7 @@ get_cell_location_info_ready (QmiClientNas *client, guint16 system_id; guint16 network_id; guint16 base_station_id; + guint16 reference_pn; guint32 latitude; guint32 longitude; @@ -2384,24 +2385,26 @@ get_cell_location_info_ready (QmiClientNas *client, } } - if(qmi_message_nas_get_cell_location_info_output_get_cdma_info ( + if (qmi_message_nas_get_cell_location_info_output_get_cdma_info ( output, &system_id, &network_id, &base_station_id, + &reference_pn, &latitude, &longitude, NULL)) { - g_print ("CDMA Info\n" "\tSystem ID: '%" G_GUINT16_FORMAT"'\n" "\tNetwork ID: '%" G_GUINT16_FORMAT"'\n" "\tBase Station ID: '%" G_GUINT16_FORMAT"'\n" + "\tReference PN: '%" G_GUINT16_FORMAT"'\n" "\tLatitude: '%" G_GUINT32_FORMAT"'\n" "\tLongitude: '%" G_GUINT32_FORMAT"'\n", system_id, network_id, base_station_id, + reference_pn, latitude, longitude); } |