mm-sim-mbim: Remove trailing F in ICCID
QMI modems remove trailing F in 19 digit ICCID. Do the same on MBIM modems for consistency.
This commit is contained in:

committed by
Aleksander Morgado

parent
0faf969e30
commit
97ab517348
@@ -85,7 +85,8 @@ simid_subscriber_ready_state_ready (MbimDevice *device,
|
|||||||
{
|
{
|
||||||
MbimMessage *response;
|
MbimMessage *response;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
gchar *sim_iccid;
|
gchar *sim_iccid = NULL;
|
||||||
|
g_autofree gchar *raw_iccid = NULL;
|
||||||
|
|
||||||
response = mbim_device_command_finish (device, res, &error);
|
response = mbim_device_command_finish (device, res, &error);
|
||||||
if (response &&
|
if (response &&
|
||||||
@@ -94,14 +95,18 @@ simid_subscriber_ready_state_ready (MbimDevice *device,
|
|||||||
response,
|
response,
|
||||||
NULL, /* ready_state */
|
NULL, /* ready_state */
|
||||||
NULL, /* subscriber_id */
|
NULL, /* subscriber_id */
|
||||||
&sim_iccid,
|
&raw_iccid,
|
||||||
NULL, /* ready_info */
|
NULL, /* ready_info */
|
||||||
NULL, /* telephone_numbers_count */
|
NULL, /* telephone_numbers_count */
|
||||||
NULL, /* telephone_numbers */
|
NULL, /* telephone_numbers */
|
||||||
&error))
|
&error))
|
||||||
g_task_return_pointer (task, sim_iccid, g_free);
|
sim_iccid = mm_3gpp_parse_iccid (raw_iccid, &error);
|
||||||
else
|
|
||||||
|
if (error)
|
||||||
g_task_return_error (task, error);
|
g_task_return_error (task, error);
|
||||||
|
else
|
||||||
|
g_task_return_pointer (task, sim_iccid, g_free);
|
||||||
|
|
||||||
g_object_unref (task);
|
g_object_unref (task);
|
||||||
|
|
||||||
if (response)
|
if (response)
|
||||||
|
Reference in New Issue
Block a user