broadband-modem-qmi: add note about index_of_running_image known issue

Since 02.20.xx.xx, the 'index_of_running_image' reported for MODEM
images is wrong.

https://forum.sierrawireless.com/t/mc74xx-wrong-running-image-in-qmi-get-stored-images/8998
This commit is contained in:
Aleksander Morgado
2019-10-11 08:16:04 +00:00
parent 66192288f9
commit 5b8da2e1b9
+7
View File
@@ -7342,7 +7342,14 @@ list_stored_images_ready (QmiClientDms *client,
pair->build_id = g_strdup (subimage_pri->build_id);
pair->modem_unique_id = g_array_ref (subimage_modem->unique_id);
pair->pri_unique_id = g_array_ref (subimage_pri->unique_id);
/* We're using the PRI 'index_of_running_image' only as source to select
* which is the current running firmware. This avoids issues with the wrong
* 'index_of_running_image' reported for the MODEM images, see:
* https://forum.sierrawireless.com/t/mc74xx-wrong-running-image-in-qmi-get-stored-images/8998
*/
pair->current = (image_pri->index_of_running_image == i ? TRUE : FALSE);
ctx->pairs = g_list_append (ctx->pairs, pair);
break;
}