dell,dw5821e: also report QMI PDC based update available
This commit is contained in:

committed by
Dan Williams

parent
87712c27f5
commit
e3766aef5d
@@ -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_ */
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user