qcdm: various LTE-related NV mode pref and sysmode updates
This commit is contained in:
@@ -287,6 +287,7 @@ enum {
|
||||
QCDM_CMD_NV_MODE_PREF_ITEM_MODE_PREF_GSM_UMTS_ONLY = 0x11,
|
||||
QCDM_CMD_NV_MODE_PREF_ITEM_MODE_PREF_1X_HDR_ONLY = 0x13,
|
||||
QCDM_CMD_NV_MODE_PREF_ITEM_MODE_PREF_LTE_ONLY = 0x1E,
|
||||
QCDM_CMD_NV_MODE_PREF_ITEM_MODE_PREF_GSM_UMTS_LTE_ONLY = 0x1F,
|
||||
QCDM_CMD_NV_MODE_PREF_ITEM_MODE_PREF_1X_HDR_LTE_ONLY = 0x24,
|
||||
};
|
||||
|
||||
@@ -418,6 +419,8 @@ enum {
|
||||
QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_WCDMA_ONLY = 0x0E,
|
||||
QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_PERSISTENT_MODE = 0x0F,
|
||||
QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_NO_CHANGE = 0x10,
|
||||
QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_LTE_ONLY = 0x26,
|
||||
QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_GSM_WCDMA_LTE_ONLY = 0x27,
|
||||
};
|
||||
|
||||
#define QCDM_CMD_CM_SUBSYS_STATE_INFO_ITEM_CALL_STATE "call-state"
|
||||
|
@@ -132,6 +132,7 @@ enum {
|
||||
DIAG_SUBSYS_CM = 15, /* Call manager */
|
||||
DIAG_SUBSYS_FS = 19, /* File System (EFS2) */
|
||||
DIAG_SUBSYS_NW_CONTROL_6500 = 50, /* for Novatel Wireless MSM6500-based devices */
|
||||
DIAG_SUBSYS_LTE = 68,
|
||||
DIAG_SUBSYS_ZTE = 101, /* for ZTE EVDO devices */
|
||||
DIAG_SUBSYS_NW_CONTROL_6800 = 250 /* for Novatel Wireless MSM6800-based devices */
|
||||
};
|
||||
|
@@ -640,6 +640,9 @@ test_com_read_mode_pref (void *f, void *data)
|
||||
case QCDM_CMD_NV_MODE_PREF_ITEM_MODE_PREF_LTE_ONLY:
|
||||
msg = "LTE only";
|
||||
break;
|
||||
case QCDM_CMD_NV_MODE_PREF_ITEM_MODE_PREF_GSM_UMTS_LTE_ONLY:
|
||||
msg = "GSM/UMTS/LTE only";
|
||||
break;
|
||||
case QCDM_CMD_NV_MODE_PREF_ITEM_MODE_PREF_1X_HDR_LTE_ONLY:
|
||||
msg = "CDMA 1x, HDR, and LTE only";
|
||||
break;
|
||||
@@ -1109,18 +1112,42 @@ test_com_cm_subsys_state_info (void *f, void *data)
|
||||
n32 = 0;
|
||||
qcdm_result_get_u32 (result, QCDM_CMD_CM_SUBSYS_STATE_INFO_ITEM_MODE_PREF, &n32);
|
||||
switch (n32) {
|
||||
case QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_AMPS_ONLY:
|
||||
detail = "AMPS only";
|
||||
break;
|
||||
case QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_DIGITAL_ONLY:
|
||||
detail = "digital only";
|
||||
break;
|
||||
case QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_AUTO:
|
||||
detail = "automatic";
|
||||
break;
|
||||
case QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_EMERGENCY:
|
||||
detail = "emergency";
|
||||
break;
|
||||
case QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_1X_ONLY:
|
||||
detail = "1X only";
|
||||
break;
|
||||
case QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_HDR_ONLY:
|
||||
detail = "HDR only";
|
||||
break;
|
||||
case QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_1X_AMPS_ONLY:
|
||||
detail = "1x/AMPS only";
|
||||
break;
|
||||
case QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_GPS_ONLY:
|
||||
detail = "GPS only";
|
||||
break;
|
||||
case QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_GSM_ONLY:
|
||||
detail = "GSM only";
|
||||
break;
|
||||
case QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_WCDMA_ONLY:
|
||||
detail = "WCDMA only";
|
||||
break;
|
||||
case QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_LTE_ONLY:
|
||||
detail = "LTE only";
|
||||
break;
|
||||
case QCDM_CMD_CM_SUBSYS_STATE_INFO_MODE_PREF_GSM_WCDMA_LTE_ONLY:
|
||||
detail = "GSM/WCDMA/LTE only";
|
||||
break;
|
||||
default:
|
||||
detail = "unknown";
|
||||
break;
|
||||
|
Reference in New Issue
Block a user