broadband-modem: fix hdr_subsys_state_info_ready

hdr_subsys_state_info_ready() did not implement the GAsyncReadyCallback
function signature, which led to a crash. This patch fixes
hdr_subsys_state_info_ready() to properly extract the QCDM response from
the GAsyncResult object.
This commit is contained in:
Ben Chan
2014-03-05 19:30:57 -08:00
committed by Aleksander Morgado
parent 22193e2f3a
commit 70fb7c2ede

View File

@@ -6324,14 +6324,16 @@ modem_cdma_get_hdr_state_finish (MMIfaceModemCdma *self,
static void static void
hdr_subsys_state_info_ready (MMPortSerialQcdm *port, hdr_subsys_state_info_ready (MMPortSerialQcdm *port,
GByteArray *response, GAsyncResult *res,
GError *error,
HdrStateContext *ctx) HdrStateContext *ctx)
{ {
QcdmResult *result; QcdmResult *result;
HdrStateResults *results; HdrStateResults *results;
gint err = QCDM_SUCCESS; gint err = QCDM_SUCCESS;
GError *error = NULL;
GByteArray *response;
response = mm_port_serial_qcdm_command_finish (port, res, &error);
if (error) { if (error) {
g_simple_async_result_set_from_error (ctx->result, error); g_simple_async_result_set_from_error (ctx->result, error);
hdr_state_context_complete_and_free (ctx); hdr_state_context_complete_and_free (ctx);