nas: implement "Get Home Network" request/response

This commit is contained in:
Aleksander Morgado 2012-08-07 16:11:58 +02:00
parent 527710afee
commit ba166b4a47
2 changed files with 79 additions and 0 deletions

View File

@ -1010,6 +1010,52 @@
"format" : "guint8",
"public-format" : "gboolean" } ] } ] },
// *********************************************************************************
{ "name" : "Get Home Network",
"type" : "Message",
"service" : "NAS",
"id" : "0x0025",
"version" : "1.0",
"output" : [ { "common-ref" : "Operation Result" },
{ "name" : "Home Network",
"id" : "0x01",
"mandatory" : "yes",
"type" : "TLV",
"format" : "sequence",
"contents" : [ { "name" : "MCC",
"format" : "guint16" },
{ "name" : "MNC",
"format" : "guint16" },
{ "name" : "Description",
"format" : "string" } ],
"prerequisites": [ { "common-ref" : "Success" } ] },
{ "name" : "Home System ID",
"id" : "0x10",
"mandatory" : "no",
"type" : "TLV",
"format" : "sequence",
"contents" : [ { "name" : "SID",
"format" : "guint16" },
{ "name" : "NID",
"format" : "guint16" } ] },
{ "name" : "Home Network 3GPP2",
"id" : "0x11",
"mandatory" : "no",
"type" : "TLV",
"format" : "sequence",
"contents" : [ { "name" : "MCC",
"format" : "guint16" },
{ "name" : "MNC",
"format" : "guint16" },
{ "name" : "Display Description",
"format" : "guint8",
"public-format" : "QmiNasNetworkDescriptionDisplay" },
{ "name" : "Description Encoding",
"format" : "guint8",
"public-format" : "QmiNasNetworkDescriptionEncoding" },
{ "name" : "Description",
"format" : "string" } ] } ] },
// *********************************************************************************
{ "name" : "Set Technology Preference",
"type" : "Message",

View File

@ -493,6 +493,39 @@ typedef enum {
QMI_NAS_CALL_BARRING_STATUS_UNKNOWN = -1
} QmiNasCallBarringStatus;
/*****************************************************************************/
/* Helper enums for the 'QMI NAS Get Home Network' request/response */
/**
* QmiNasNetworkDescriptionDisplay:
* @QMI_NAS_NETWORK_DESCRIPTION_DISPLAY_NO: Don't display.
* @QMI_NAS_NETWORK_DESCRIPTION_DISPLAY_YES: Display.
* @QMI_NAS_NETWORK_DESCRIPTION_DISPLAY_UNKNOWN: Unknown.
*
* Setup to define whether the network description should be displayed.
*/
typedef enum {
QMI_NAS_NETWORK_DESCRIPTION_DISPLAY_NO = 0x00,
QMI_NAS_NETWORK_DESCRIPTION_DISPLAY_YES = 0x01,
QMI_NAS_NETWORK_DESCRIPTION_DISPLAY_UNKNOWN = 0xFF
} QmiNasNetworkDescriptionDisplay;
/**
* QmiNasNetworkDescriptionEncoding:
* @QMI_NAS_NETWORK_DESCRIPTION_ENCODING_UNSPECIFIED: Unspecified.
* @QMI_NAS_NETWORK_DESCRIPTION_ENCODING_ASCII7: ASCII-7.
* @QMI_NAS_NETWORK_DESCRIPTION_ENCODING_UNICODE: Unicode.
* @QMI_NAS_NETWORK_DESCRIPTION_ENCODING_GSM: GSM 7-bit.
*
* Type of encoding used in the network description.
*/
typedef enum {
QMI_NAS_NETWORK_DESCRIPTION_ENCODING_UNSPECIFIED = 0x00,
QMI_NAS_NETWORK_DESCRIPTION_ENCODING_ASCII7 = 0x01,
QMI_NAS_NETWORK_DESCRIPTION_ENCODING_UNICODE = 0x04,
QMI_NAS_NETWORK_DESCRIPTION_ENCODING_GSM = 0x09
} QmiNasNetworkDescriptionEncoding;
/*****************************************************************************/
/* Helper enums for the 'QMI NAS Get Technology Preference' request/response */