port-serial-qcdm: commands are never cached

The QCDM port commands are never cached, so remove the option from the command()
method. Will also simplify command caching afterwards as it will be an AT-only
thing.
This commit is contained in:
Aleksander Morgado
2013-11-18 12:07:25 +01:00
parent 5792bcc876
commit a2f4fbe373
6 changed files with 2 additions and 20 deletions

View File

@@ -519,7 +519,6 @@ nw_snapshot_new_cb (MMPortSerialQcdm *port,
mm_port_serial_qcdm_command (port,
nwsnap,
3,
FALSE,
NULL,
(GAsyncReadyCallback)nw_snapshot_old_cb,
ctx);
@@ -555,7 +554,6 @@ get_nw_modem_snapshot (MMBaseModem *self,
mm_port_serial_qcdm_command (port,
nwsnap,
3,
FALSE,
NULL,
(GAsyncReadyCallback)nw_snapshot_new_cb,
ctx);
@@ -1046,7 +1044,6 @@ reg_eri_6800_cb (MMPortSerialQcdm *port,
mm_port_serial_qcdm_command (port,
nweri,
3,
FALSE,
NULL,
(GAsyncReadyCallback)reg_eri_6500_cb,
ctx);
@@ -1090,7 +1087,6 @@ modem_cdma_get_detailed_registration_state (MMIfaceModemCdma *self,
mm_port_serial_qcdm_command (port,
nweri,
3,
FALSE,
NULL,
(GAsyncReadyCallback)reg_eri_6800_cb,
ctx);

View File

@@ -686,7 +686,6 @@ load_current_capabilities_qcdm (LoadCapabilitiesContext *ctx)
mm_port_serial_qcdm_command (ctx->qcdm_port,
cmd,
3,
FALSE,
NULL,
(GAsyncReadyCallback)mode_pref_qcdm_ready,
ctx);
@@ -1125,7 +1124,6 @@ modem_load_own_numbers_done (MMIfaceModem *self,
mm_port_serial_qcdm_command (ctx->qcdm,
mdn,
3,
FALSE,
NULL,
(GAsyncReadyCallback)mdn_qcdm_ready,
ctx);
@@ -1979,7 +1977,6 @@ signal_quality_qcdm (SignalQualityContext *ctx)
mm_port_serial_qcdm_command (MM_PORT_SERIAL_QCDM (ctx->port),
pilot_sets,
3,
FALSE,
NULL,
(GAsyncReadyCallback)signal_quality_qcdm_ready,
ctx);
@@ -2234,7 +2231,6 @@ access_tech_qcdm_gsm_ready (MMPortSerialQcdm *port,
mm_port_serial_qcdm_command (port,
cmd,
3,
FALSE,
NULL,
(GAsyncReadyCallback)access_tech_qcdm_wcdma_ready,
ctx);
@@ -2325,7 +2321,6 @@ access_tech_qcdm_cdma_ready (MMPortSerialQcdm *port,
mm_port_serial_qcdm_command (port,
cmd,
3,
FALSE,
NULL,
(GAsyncReadyCallback)access_tech_qcdm_hdr_ready,
ctx);
@@ -2409,7 +2404,6 @@ modem_load_access_technologies (MMIfaceModem *self,
mm_port_serial_qcdm_command (ctx->port,
cmd,
3,
FALSE,
NULL,
(GAsyncReadyCallback)access_tech_qcdm_gsm_ready,
ctx);
@@ -2425,7 +2419,6 @@ modem_load_access_technologies (MMIfaceModem *self,
mm_port_serial_qcdm_command (ctx->port,
cmd,
3,
FALSE,
NULL,
(GAsyncReadyCallback)access_tech_qcdm_cdma_ready,
ctx);
@@ -6412,7 +6405,6 @@ modem_cdma_get_hdr_state (MMIfaceModemCdma *self,
mm_port_serial_qcdm_command (ctx->qcdm,
hdrstate,
3,
FALSE,
NULL,
(GAsyncReadyCallback)hdr_subsys_state_info_ready,
ctx);
@@ -6541,7 +6533,6 @@ modem_cdma_get_call_manager_state (MMIfaceModemCdma *self,
mm_port_serial_qcdm_command (ctx->qcdm,
cmstate,
3,
FALSE,
NULL,
(GAsyncReadyCallback)cm_subsys_state_info_ready,
ctx);
@@ -6824,7 +6815,6 @@ modem_cdma_get_cdma1x_serving_system (MMIfaceModemCdma *self,
mm_port_serial_qcdm_command (ctx->qcdm,
cdma_status,
3,
FALSE,
NULL,
(GAsyncReadyCallback)qcdm_cdma_status_ready,
ctx);

View File

@@ -624,7 +624,6 @@ serial_probe_qcdm_parse_response (MMPortSerialQcdm *port,
mm_port_serial_qcdm_command (MM_PORT_SERIAL_QCDM (task->serial),
cmd2,
3,
FALSE,
NULL,
(GAsyncReadyCallback)serial_probe_qcdm_parse_response,
self);
@@ -738,7 +737,6 @@ serial_probe_qcdm (MMPortProbe *self)
mm_port_serial_qcdm_command (MM_PORT_SERIAL_QCDM (task->serial),
verinfo,
3,
FALSE,
NULL,
(GAsyncReadyCallback)serial_probe_qcdm_parse_response,
self);

View File

@@ -160,7 +160,6 @@ void
mm_port_serial_qcdm_command (MMPortSerialQcdm *self,
GByteArray *command,
guint32 timeout_seconds,
gboolean allow_cached,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
@@ -179,7 +178,7 @@ mm_port_serial_qcdm_command (MMPortSerialQcdm *self,
mm_port_serial_command (MM_PORT_SERIAL (self),
command,
timeout_seconds,
allow_cached,
FALSE, /* never cached */
cancellable,
(GAsyncReadyCallback)serial_command_ready,
simple);

View File

@@ -48,7 +48,6 @@ MMPortSerialQcdm *mm_port_serial_qcdm_new_fd (int fd);
void mm_port_serial_qcdm_command (MMPortSerialQcdm *self,
GByteArray *command,
guint32 timeout_seconds,
gboolean allow_cached,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);

View File

@@ -201,7 +201,7 @@ qcdm_request_verinfo (MMPortSerialQcdm *port,
g_byte_array_free (verinfo, TRUE);
verinfo->len = len;
mm_port_serial_qcdm_command (port, verinfo, 3, FALSE, NULL, cb, loop);
mm_port_serial_qcdm_command (port, verinfo, 3, NULL, cb, loop);
g_byte_array_unref (verinfo);
}