broadband-modem-qmi: fix reporting of signal strength indications

We had all the logic in place... but we were never actually enabling
the signal strength indications because the `enable` flag in the
context was never set.

The bug was introduced back in May 2018, and released with 1.10.0.

Fixes baefe53ab9
This commit is contained in:
Aleksander Morgado
2020-12-01 22:59:32 +01:00
parent d531992897
commit f80c8d8be6

View File

@@ -4909,6 +4909,7 @@ common_enable_disable_unsolicited_events (MMBroadbandModemQmi *self,
} }
ctx = g_new0 (EnableUnsolicitedEventsContext, 1); ctx = g_new0 (EnableUnsolicitedEventsContext, 1);
ctx->enable = enable;
ctx->client = g_object_ref (client); ctx->client = g_object_ref (client);
g_task_set_task_data (task, ctx, (GDestroyNotify)enable_unsolicited_events_context_free); g_task_set_task_data (task, ctx, (GDestroyNotify)enable_unsolicited_events_context_free);