decode: update with latest QMI enums

Since QC stopped distributing the database files, we can't easily
decode the TLV names unless we start parsing the C headers.
This commit is contained in:
Dan Williams
2012-06-22 12:06:08 -05:00
parent ab5e9a49cf
commit 16d85f7b33
4 changed files with 222 additions and 7 deletions

View File

@@ -34,6 +34,8 @@ auth_cmds = {
34: ("EAP_RESULT_IND", None, auth_eap_result_ind_rsp_tlvs, None),
35: ("GET_EAP_KEYS", None, auth_get_eap_keys_rsp_tlvs, None),
36: ("END_EAP", None, auth_end_eap_rsp_tlvs, None),
37: ("RUN_AKA", None, None, None),
38: ("AKA_RESULT_IND", None, None, None),
}
cat_reset_rsp_tlvs = { # 0
2: "CAT/Reset Response/Result Code",
@@ -89,6 +91,15 @@ cat_cmds = {
32: ("GET_STATE", None, cat_get_state_rsp_tlvs, None),
33: ("SEND_TERMINAL", cat_send_terminal_req_tlvs, cat_send_terminal_rsp_tlvs, None),
34: ("SEND_ENVELOPE", cat_send_envelope_req_tlvs, cat_send_envelope_rsp_tlvs, None),
35: ("GET_EVENT", None, None, None),
36: ("SEND_DECODED_TERMINAL", None, None, None),
37: ("SEND_DECODED_ENVELOPE", None, None, None),
38: ("EVENT_CONFIRMATION", None, None, None),
39: ("SCWS_OPEN_CHANNEL", None, None, None),
40: ("SCWS_CLOSE_CHANNEL", None, None, None),
41: ("SCWS_SEND_DATA", None, None, None),
42: ("SCWS_DATA_AVAILABLE", None, None, None),
43: ("SCWS_CHANNEL_STATUS", None, None, None),
}
ctl_set_instance_id_req_tlvs = { # 32
1: "CTL/Set Instance ID Request/Instance",
@@ -609,6 +620,8 @@ dms_cmds = {
78: ("SET_ALT_NET_CFG", dms_set_alt_net_cfg_req_tlvs, dms_set_alt_net_cfg_rsp_tlvs, None),
79: ("GET_IMG_DLOAD_MODE", None, dms_get_img_dload_mode_rsp_tlvs, None),
80: ("SET_IMG_DLOAD_MODE", dms_set_img_dload_mode_req_tlvs, dms_set_img_dload_mode_rsp_tlvs, None),
81: ("GET_SW_VERSION", None, None, None),
82: ("SET_SPC", None, None, None),
}
nas_reset_rsp_tlvs = { # 0
2: "NAS/Reset Response/Result Code",
@@ -919,6 +932,39 @@ nas_cmds = {
59: ("GET_PLMN_MODE", None, nas_get_plmn_mode_rsp_tlvs, None),
60: ("PLMN_MODE_IND", None, None, nas_plmn_mode_ind_ind_tlvs),
68: ("GET_PLMN_NAME", nas_get_plmn_name_req_tlvs, nas_get_plmn_name_rsp_tlvs, None),
69: ("BIND_SUBS", None, None, None),
70: ("MANAGED_ROAMING_IND", None, None, None),
71: ("DSB_PREF_IND", None, None, None),
72: ("SUBS_INFO_IND", None, None, None),
73: ("GET_MODE_PREF", None, None, None),
75: ("SET_DSB_PREF", None, None, None),
76: ("NETWORK_TIME_IND", None, None, None),
77: ("GET_SYSTEM_INFO", None, None, None),
78: ("SYSTEM_INFO_IND", None, None, None),
79: ("GET_SIGNAL_INFO", None, None, None),
80: ("CFG_SIGNAL_INFO", None, None, None),
81: ("SIGNAL_INFO_IND", None, None, None),
82: ("GET_ERROR_RATE", None, None, None),
83: ("ERROR_RATE_IND", None, None, None),
84: ("EVDO_SESSION_IND", None, None, None),
85: ("EVDO_UATI_IND", None, None, None),
86: ("GET_EVDO_SUBTYPE", None, None, None),
87: ("GET_EVDO_COLOR_CODE", None, None, None),
88: ("GET_ACQ_SYS_MODE", None, None, None),
89: ("SET_RX_DIVERSITY", None, None, None),
90: ("GET_RX_TX_INFO", None, None, None),
91: ("UPDATE_AKEY_EXT", None, None, None),
92: ("GET_DSB_PREF", None, None, None),
93: ("DETACH_LTE", None, None, None),
94: ("BLOCK_LTE_PLMN", None, None, None),
95: ("UNBLOCK_LTE_PLMN", None, None, None),
96: ("RESET_LTE_PLMN_BLK", None, None, None),
97: ("CUR_PLMN_NAME_IND", None, None, None),
98: ("CONFIG_EMBMS", None, None, None),
99: ("GET_EMBMS_STATUS", None, None, None),
100: ("EMBMS_STATUS_IND", None, None, None),
101: ("GET_CDMA_POS_INFO", None, None, None),
102: ("RF_BAND_INFO_IND", None, None, None),
}
oma_reset_rsp_tlvs = { # 0
2: "OMA/Reset Response/Result Code",
@@ -1367,6 +1413,19 @@ pds_cmds = {
68: ("GET_GPS_STATE", None, pds_get_gps_state_rsp_tlvs, None),
80: ("GET_METHODS", None, pds_get_methods_rsp_tlvs, None),
81: ("SET_METHODS", pds_set_methods_req_tlvs, pds_set_methods_rsp_tlvs, None),
82: ("INJECT_SENSOR", None, None, None),
83: ("INJECT_TIME_SYNC", None, None, None),
84: ("GET_SENSOR_CFG", None, None, None),
85: ("SET_SENSOR_CFG", None, None, None),
86: ("GET_NAV_CFG", None, None, None),
87: ("SET_NAV_CFG", None, None, None),
90: ("SET_WLAN_BLANK", None, None, None),
91: ("SET_LBS_SC_RPT", None, None, None),
92: ("SET_LBS_SC", None, None, None),
93: ("GET_LBS_ENCRYPT_CFG", None, None, None),
94: ("SET_LBS_UPDATE_RATE", None, None, None),
95: ("SET_CELLDB_CONTROL", None, None, None),
96: ("READY_IND", None, None, None),
}
rms_reset_rsp_tlvs = { # 0
2: "RMS/Reset Response/Result Code",
@@ -1471,6 +1530,17 @@ voice_cmds = {
65: ("GET_CONFIG", None, None, None),
66: ("SUPS_IND", None, None, None),
67: ("ASYNC_ORIG_USSD", voice_async_orig_ussd_req_tlvs, voice_async_orig_ussd_rsp_tlvs, voice_async_orig_ussd_ind_tlvs),
68: ("BIND_SUBSCRIPTION", None, None, None),
69: ("ALS_SET_LINE_SW", None, None, None),
70: ("ALS_SELECT_LINE", None, None, None),
71: ("AOC_RESET_ACM", None, None, None),
72: ("AOC_SET_ACM_MAX", None, None, None),
73: ("AOC_GET_CM_INFO", None, None, None),
74: ("AOC_LOW_FUNDS_IND", None, None, None),
75: ("GET_COLP", None, None, None),
76: ("GET_COLR", None, None, None),
77: ("GET_CNAP", None, None, None),
78: ("MANAGE_IP_CALLS", None, None, None),
}
wds_reset_rsp_tlvs = { # 0
2: "WDS/Reset Response/Result Code",
@@ -2076,6 +2146,27 @@ wds_cmds = {
81: ("SET_AUTOCONNECT", wds_set_autoconnect_req_tlvs, wds_set_autoconnect_rsp_tlvs, None),
82: ("GET_DNS", None, wds_get_dns_rsp_tlvs, None),
83: ("SET_DNS", wds_set_dns_req_tlvs, wds_set_dns_rsp_tlvs, None),
84: ("GET_PRE_DORMANCY", None, None, None),
85: ("SET_CAM_TIMER", None, None, None),
86: ("GET_CAM_TIMER", None, None, None),
87: ("SET_SCRM", None, None, None),
88: ("GET_SCRM", None, None, None),
89: ("SET_RDUD", None, None, None),
90: ("GET_RDUD", None, None, None),
91: ("GET_SIPMIP_CALL_TYPE", None, None, None),
92: ("SET_PM_PERIOD", None, None, None),
93: ("SET_FORCE_LONG_SLEEP", None, None, None),
94: ("GET_PM_PERIOD", None, None, None),
95: ("GET_CALL_THROTTLE", None, None, None),
96: ("GET_NSAPI", None, None, None),
97: ("SET_DUN_CTRL_PREF", None, None, None),
98: ("GET_DUN_CTRL_INFO", None, None, None),
99: ("SET_DUN_CTRL_EVENT", None, None, None),
100: ("PENDING_DUN_CTRL", None, None, None),
105: ("GET_DATA_SYS", None, None, None),
106: ("GET_LAST_DATA_STATUS", None, None, None),
107: ("GET_CURR_DATA_SYS", None, None, None),
108: ("GET_PDN_THROTTLE", None, None, None),
}
wms_reset_rsp_tlvs = { # 0
2: "WMS/Reset Response/Result Code",
@@ -2334,6 +2425,16 @@ wms_cmds = {
68: ("MSG_WAITING_IND", None, None, None),
69: ("SET_PRIMARY_CLIENT", None, None, None),
70: ("SMSC_ADDR_IND", None, None, wms_smsc_addr_ind_ind_tlvs),
71: ("INDICATOR_REG", None, None, None),
72: ("GET_TRANSPORT_INFO", None, None, None),
73: ("TRANSPORT_INFO_IND", None, None, None),
74: ("GET_NW_REG_INFO", None, None, None),
75: ("NW_REG_INFO_IND", None, None, None),
76: ("BIND_SUBSCRIPTION", None, None, None),
77: ("GET_INDICATOR_REG", None, None, None),
78: ("GET_SMS_PARAMETERS", None, None, None),
79: ("SET_SMS_PARAMETERS", None, None, None),
80: ("CALL_STATUS_IND", None, None, None),
}
services = {