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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user