mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-18 21:45:54 +00:00

When we install the MCFG carrier config files with QMI PDC, we were not explicitly selecting one, and that would end up reporting the "DF" (default) config is in use. Instead, we should explicitly select the carrier configuration that we were using before the firmware upgrade operation. For example, if the device originally was running with the Vodafone specific carrier configuration (e.g. T77W968.F1.0.0.3.7.VF.009) and we trigger the upgrade to the next available firmware associated to the Vodafone carrier (e.g. T77W968.F1.0.0.3.8.VF.009), we would want the device to boot with the Vodafone carrier config selected, instead of booting without any config selected (T77W968.F1.0.0.3.8.DF.009). This also fixes several upgrade problems detected by fwupd, because it may end up complaining that the target firmware that was selected to be installed (e.g. VF variant) is not the one actually reported by the device after the upgrade (e.g. DF variant). The selection of which is the config to activate is based on mapping the mcfg file name with the firmware version reported by the module before the upgrade. E.g. if the VF variant is reported by the module (T77W968.F1.0.0.3.7.VF.009), fwupd will look for a MCFG file named with the "mcfg.VF." prefix.
33 lines
913 B
C
33 lines
913 B
C
/*
|
|
* Copyright (C) 2019 Aleksander Morgado <aleksander@aleksander.es>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#ifndef __FU_QMI_PDC_UPDATER_H
|
|
#define __FU_QMI_PDC_UPDATER_H
|
|
|
|
#include <libqmi-glib.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define FU_TYPE_QMI_PDC_UPDATER (fu_qmi_pdc_updater_get_type ())
|
|
G_DECLARE_FINAL_TYPE (FuQmiPdcUpdater, fu_qmi_pdc_updater, FU, QMI_PDC_UPDATER, GObject)
|
|
|
|
FuQmiPdcUpdater *fu_qmi_pdc_updater_new (const gchar *qmi_port);
|
|
gboolean fu_qmi_pdc_updater_open (FuQmiPdcUpdater *self,
|
|
GError **error);
|
|
GArray *fu_qmi_pdc_updater_write (FuQmiPdcUpdater *self,
|
|
const gchar *filename,
|
|
GBytes *blob,
|
|
GError **error);
|
|
gboolean fu_qmi_pdc_updater_activate (FuQmiPdcUpdater *self,
|
|
GArray *digest,
|
|
GError **error);
|
|
gboolean fu_qmi_pdc_updater_close (FuQmiPdcUpdater *self,
|
|
GError **error);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __FU_QMI_PDC_UPDATER_H */
|