aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-01-23 18:30:27 +0100
committerAleksander Morgado <aleksander@aleksander.es>2017-01-29 10:37:53 +0100
commite9f3e7995084808b1afd6f3a7665db5033eed477 (patch)
tree14b3ca4b14bd46e01ae391678ff3a94a9b871306
parentb4a19def7d913b06cb898e4c85a9cd30e24ca299 (diff)
downloadexternal_libqmi-e9f3e7995084808b1afd6f3a7665db5033eed477.zip
external_libqmi-e9f3e7995084808b1afd6f3a7665db5033eed477.tar.gz
external_libqmi-e9f3e7995084808b1afd6f3a7665db5033eed477.tar.bz2
dms: disable all HP device modes that we're not so sure about
We just leave 'fastboot', which is the one required for firmware update.
-rw-r--r--src/libqmi-glib/qmi-enums-dms.h12
-rw-r--r--src/qmicli/qmicli-dms.c2
2 files changed, 2 insertions, 12 deletions
diff --git a/src/libqmi-glib/qmi-enums-dms.h b/src/libqmi-glib/qmi-enums-dms.h
index 61fb287..2597187 100644
--- a/src/libqmi-glib/qmi-enums-dms.h
+++ b/src/libqmi-glib/qmi-enums-dms.h
@@ -359,22 +359,12 @@ typedef enum {
/**
* QmiDmsHpDeviceMode:
- * @QMI_DMS_HP_DEVICE_MODE_QMI: AT+QMI capable mode.
- * @QMI_DMS_HP_DEVICE_MODE_NCM: AT+NCM capable mode.
- * @QMI_DMS_HP_DEVICE_MODE_MBIM: AT+MBIM capable mode.
* @QMI_DMS_HP_DEVICE_MODE_FASTBOOT: Fastboot download mode.
- * @QMI_DMS_HP_DEVICE_MODE_SOFT_RESET: Soft reset.
- * @QMI_DMS_HP_DEVICE_MODE_HARD_RESET: Hard reset.
*
* HP specific device modes.
*/
typedef enum {
- QMI_DMS_HP_DEVICE_MODE_QMI = 2,
- QMI_DMS_HP_DEVICE_MODE_NCM = 3,
- QMI_DMS_HP_DEVICE_MODE_MBIM = 4,
- QMI_DMS_HP_DEVICE_MODE_FASTBOOT = 5,
- QMI_DMS_HP_DEVICE_MODE_SOFT_RESET = 7,
- QMI_DMS_HP_DEVICE_MODE_HARD_RESET = 8,
+ QMI_DMS_HP_DEVICE_MODE_FASTBOOT = 5,
} QmiDmsHpDeviceMode;
#endif /* _LIBQMI_GLIB_QMI_ENUMS_DMS_H_ */
diff --git a/src/qmicli/qmicli-dms.c b/src/qmicli/qmicli-dms.c
index 2def425..32fe38a 100644
--- a/src/qmicli/qmicli-dms.c
+++ b/src/qmicli/qmicli-dms.c
@@ -288,7 +288,7 @@ static GOptionEntry entries[] = {
},
{ "dms-hp-change-device-mode", 0, 0, G_OPTION_ARG_STRING, &hp_change_device_mode_str,
"Change device mode (HP specific)",
- "[qmi|ncm|mbim|fastboot|soft-reset|hard-reset]"
+ "[fastboot]"
},
{ "dms-swi-get-current-firmware", 0, 0, G_OPTION_ARG_NONE, &swi_get_current_firmware_flag,
"Get Current Firmware (Sierra Wireless specific)",