diff options
-rw-r--r-- | data/qmi-service-nas.json | 8 | ||||
-rw-r--r-- | docs/reference/libqmi-glib/libqmi-glib-common.sections | 5 | ||||
-rw-r--r-- | src/libqmi-glib/qmi-enums-nas.h | 20 | ||||
-rw-r--r-- | src/qmicli/qmicli-nas.c | 8 |
4 files changed, 40 insertions, 1 deletions
diff --git a/data/qmi-service-nas.json b/data/qmi-service-nas.json index 79a21d3d..9f9731a9 100644 --- a/data/qmi-service-nas.json +++ b/data/qmi-service-nas.json @@ -2507,7 +2507,13 @@ "type" : "TLV", "since" : "1.0", "format" : "guint32", - "public-format" : "QmiNasSimRejectState" } ] }, + "public-format" : "QmiNasSimRejectState" }, + { "name" : "LTE Cell Access Status", + "id" : "0x44", + "type" : "TLV", + "since" : "1.24", + "format" : "guint32", + "public-format" : "QmiNasLteCellAccessStatus" } ] }, // ********************************************************************************* { "name" : "System Info", diff --git a/docs/reference/libqmi-glib/libqmi-glib-common.sections b/docs/reference/libqmi-glib/libqmi-glib-common.sections index 9aa40348..1168f183 100644 --- a/docs/reference/libqmi-glib/libqmi-glib-common.sections +++ b/docs/reference/libqmi-glib/libqmi-glib-common.sections @@ -306,6 +306,7 @@ QmiNasPlmnEncodingScheme QmiNasPlmnNameCountryInitials QmiNasPlmnNameSpareBits QmiNasUsagePreference +QmiNasLteCellAccessStatus <SUBSECTION Methods> qmi_nas_radio_interface_get_string qmi_nas_active_band_get_string @@ -355,6 +356,7 @@ qmi_nas_plmn_encoding_scheme_get_string qmi_nas_plmn_name_country_initials_get_string qmi_nas_plmn_name_spare_bits_get_string qmi_nas_usage_preference_get_string +qmi_nas_lte_cell_access_status_get_string <SUBSECTION Private> qmi_nas_radio_interface_build_string_from_mask qmi_nas_active_band_build_string_from_mask @@ -402,6 +404,7 @@ qmi_nas_plmn_name_country_initials_build_string_from_mask qmi_nas_plmn_name_spare_bits_build_string_from_mask qmi_nas_ps_attach_action_build_string_from_mask qmi_nas_usage_preference_build_string_from_mask +qmi_nas_lte_cell_access_status_build_string_from_mask <SUBSECTION Standard> QMI_TYPE_NAS_ACTIVE_BAND QMI_TYPE_NAS_ATTACH_STATE @@ -449,6 +452,7 @@ QMI_TYPE_NAS_PLMN_ENCODING_SCHEME QMI_TYPE_NAS_PLMN_NAME_COUNTRY_INITIALS QMI_TYPE_NAS_PLMN_NAME_SPARE_BITS QMI_TYPE_NAS_USAGE_PREFERENCE +QMI_TYPE_NAS_LTE_CELL_ACCESS_STATUS qmi_nas_active_band_get_type qmi_nas_attach_state_get_type qmi_nas_call_barring_status_get_type @@ -495,6 +499,7 @@ qmi_nas_plmn_encoding_scheme_get_type qmi_nas_plmn_name_country_initials_get_type qmi_nas_plmn_name_spare_bits_get_type qmi_nas_usage_preference_get_type +qmi_nas_lte_cell_access_status_get_type </SECTION> <SECTION> diff --git a/src/libqmi-glib/qmi-enums-nas.h b/src/libqmi-glib/qmi-enums-nas.h index 734d97a3..58effcff 100644 --- a/src/libqmi-glib/qmi-enums-nas.h +++ b/src/libqmi-glib/qmi-enums-nas.h @@ -1046,6 +1046,26 @@ typedef enum { */ /** + * QmiNasLteCellAccessStatus: + * @QMI_NAS_CELL_ACCESS_STATUS_NORMAL_ONLY: Access is allowed for normal calls only. + * @QMI_NAS_CELL_ACCESS_STATUS_EMERGENCY_ONLY: Access is allowed for emergency calls only. + * @QMI_NAS_CELL_ACCESS_STATUS_NO_CALLS: Access is not allowed for any call type. + * @QMI_NAS_CELL_ACCESS_STATUS_ALL_CALLS: Access is allowed for all call types. + * @QMI_NAS_CELL_ACCESS_STATUS_UNKNOWN: Unknown. + * + * Cell access status for LTE calls. + * + * Since: 1.24 + */ +typedef enum { + QMI_NAS_CELL_ACCESS_STATUS_NORMAL_ONLY = 0x00, + QMI_NAS_CELL_ACCESS_STATUS_EMERGENCY_ONLY = 0x01, + QMI_NAS_CELL_ACCESS_STATUS_NO_CALLS = 0x02, + QMI_NAS_CELL_ACCESS_STATUS_ALL_CALLS = 0x03, + QMI_NAS_CELL_ACCESS_STATUS_UNKNOWN = 0xFF, +} QmiNasLteCellAccessStatus; + +/** * QmiNasHdrProtocolRevision: * @QMI_NAS_HDR_PROTOCOL_REVISION_NONE: None. * @QMI_NAS_HDR_PROTOCOL_REVISION_REL_0: HDR Rel 0. diff --git a/src/qmicli/qmicli-nas.c b/src/qmicli/qmicli-nas.c index c2da8273..944dc8d3 100644 --- a/src/qmicli/qmicli-nas.c +++ b/src/qmicli/qmicli-nas.c @@ -1714,6 +1714,7 @@ get_system_info_ready (QmiClientNas *client, guint16 geo_system_index; gboolean voice_support; gboolean embms_coverage_info_support; + QmiNasLteCellAccessStatus cell_access_status; if (qmi_message_nas_get_system_info_output_get_lte_service_status ( output, @@ -1789,6 +1790,13 @@ get_system_info_ready (QmiClientNas *client, NULL)) { g_print ("\t\teMBMS coverage info support: '%s'\n", embms_coverage_info_support ? "yes" : "no"); } + + if (qmi_message_nas_get_system_info_output_get_lte_cell_access_status ( + output, + &cell_access_status, + NULL)) { + g_print ("\t\tCell access: '%s'\n", qmi_nas_lte_cell_access_status_get_string (cell_access_status)); + } } } |