dell,dw5821e: also report QMI PDC based update available

This commit is contained in:
Aleksander Morgado
2018-12-28 13:03:52 +01:00
committed by Dan Williams
parent 87712c27f5
commit e3766aef5d
2 changed files with 4 additions and 1 deletions

View File

@@ -1407,12 +1407,14 @@ typedef enum { /*< underscore_name=mm_call_direction >*/
* MMModemFirmwareUpdateMethod:
* @MM_MODEM_FIRMWARE_UPDATE_METHOD_NONE: No method specified.
* @MM_MODEM_FIRMWARE_UPDATE_METHOD_FASTBOOT: Device supports fastboot-based update.
* @MM_MODEM_FIRMWARE_UPDATE_METHOD_QMI_PDC: Device supports QMI PDC based update.
*
* Type of firmware update method supported by the module.
*/
typedef enum { /*< underscore_name=mm_modem_firmware_update_method >*/
MM_MODEM_FIRMWARE_UPDATE_METHOD_NONE = 0,
MM_MODEM_FIRMWARE_UPDATE_METHOD_FASTBOOT = 1 << 0,
MM_MODEM_FIRMWARE_UPDATE_METHOD_QMI_PDC = 1 << 1,
} MMModemFirmwareUpdateMethod;
#endif /* _MODEMMANAGER_ENUMS_H_ */

View File

@@ -75,7 +75,8 @@ firmware_load_update_settings (MMIfaceModemFirmware *self,
task = g_task_new (self, NULL, callback, user_data);
update_settings = mm_firmware_update_settings_new (MM_MODEM_FIRMWARE_UPDATE_METHOD_FASTBOOT);
update_settings = mm_firmware_update_settings_new (MM_MODEM_FIRMWARE_UPDATE_METHOD_FASTBOOT |
MM_MODEM_FIRMWARE_UPDATE_METHOD_QMI_PDC);
mm_firmware_update_settings_set_fastboot_at (update_settings, "AT^FASTBOOT");
g_task_return_pointer (task, update_settings, g_object_unref);