base-modem-at: add 'raw' handling to `mm_base_modem_at_command_full()'
This commit is contained in:
@@ -1054,6 +1054,7 @@ modem_3gpp_disable_unsolicited_events (MMIfaceModem3gpp *self,
|
||||
"^CURC=0",
|
||||
5,
|
||||
FALSE, /* allow_cached */
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)own_disable_unsolicited_events_ready,
|
||||
result);
|
||||
|
||||
@@ -244,6 +244,7 @@ get_ip_config_3gpp (MMBroadbandBearer *self,
|
||||
command,
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)ip_config_ready,
|
||||
ctx);
|
||||
@@ -441,6 +442,7 @@ disconnect_3gpp (MMBroadbandBearer *bearer,
|
||||
command,
|
||||
60,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)disconnect_ipdpact_ready,
|
||||
g_object_ref (ctx->self)); /* we pass the bearer object! */
|
||||
@@ -553,6 +555,7 @@ connect_reset (Dial3gppContext *ctx)
|
||||
command,
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)connect_reset_ready,
|
||||
ctx);
|
||||
@@ -685,6 +688,7 @@ report_connect_status (MMBroadbandBearerIcera *self,
|
||||
"%IER?",
|
||||
60,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)ier_query_ready,
|
||||
ctx);
|
||||
@@ -781,6 +785,7 @@ deactivate_ready (MMBaseModem *modem,
|
||||
command,
|
||||
60,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)activate_ready,
|
||||
g_object_ref (ctx->self)); /* we pass the bearer object! */
|
||||
@@ -820,6 +825,7 @@ authenticate_ready (MMBaseModem *modem,
|
||||
command,
|
||||
60,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)deactivate_ready,
|
||||
ctx);
|
||||
@@ -856,6 +862,7 @@ authenticate (Dial3gppContext *ctx)
|
||||
command,
|
||||
60,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)authenticate_ready,
|
||||
ctx);
|
||||
|
||||
@@ -155,6 +155,7 @@ dial_ready (MMBaseModem *modem,
|
||||
"+CEER",
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)connect_report_ready,
|
||||
ctx);
|
||||
@@ -215,6 +216,7 @@ service_type_ready (MMBaseModem *modem,
|
||||
"ATDT008816000025",
|
||||
60,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)dial_ready,
|
||||
ctx);
|
||||
@@ -255,6 +257,7 @@ connect (MMBearer *self,
|
||||
"+CBST=71,0,1",
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)service_type_ready,
|
||||
ctx);
|
||||
|
||||
@@ -287,6 +287,7 @@ poll_timeout_cb (MMBroadbandBearerMbm *self)
|
||||
"AT*ENAP?",
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)poll_ready,
|
||||
g_object_ref (ctx->self)); /* we pass the bearer object! */
|
||||
@@ -360,6 +361,7 @@ activate (Dial3gppContext *ctx)
|
||||
command,
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)activate_ready,
|
||||
g_object_ref (ctx->self)); /* we pass the bearer object! */
|
||||
@@ -416,6 +418,7 @@ authenticate (Dial3gppContext *ctx)
|
||||
command,
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)authenticate_ready,
|
||||
ctx);
|
||||
@@ -522,6 +525,7 @@ disconnect_3gpp (MMBroadbandBearer *self,
|
||||
"*ENAP=0",
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)disconnect_enap_ready,
|
||||
ctx);
|
||||
|
||||
@@ -212,19 +212,21 @@ get_ip_config_3gpp (MMBroadbandBearer *self,
|
||||
gchar *command;
|
||||
|
||||
command = g_strdup_printf ("AT_OWANDATA=%d", cid);
|
||||
mm_base_modem_at_command_full (MM_BASE_MODEM (modem),
|
||||
primary,
|
||||
command,
|
||||
3,
|
||||
FALSE,
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)ip_config_ready,
|
||||
get_ip_config_3gpp_context_new (MM_BROADBAND_BEARER_HSO (self),
|
||||
MM_BASE_MODEM (modem),
|
||||
primary,
|
||||
cid,
|
||||
callback,
|
||||
user_data));
|
||||
mm_base_modem_at_command_full (
|
||||
MM_BASE_MODEM (modem),
|
||||
primary,
|
||||
command,
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)ip_config_ready,
|
||||
get_ip_config_3gpp_context_new (MM_BROADBAND_BEARER_HSO (self),
|
||||
MM_BASE_MODEM (modem),
|
||||
primary,
|
||||
cid,
|
||||
callback,
|
||||
user_data));
|
||||
g_free (command);
|
||||
}
|
||||
|
||||
@@ -401,6 +403,7 @@ connect_reset (Dial3gppContext *ctx)
|
||||
command,
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)connect_reset_ready,
|
||||
ctx);
|
||||
@@ -537,6 +540,7 @@ authenticate_ready (MMBaseModem *modem,
|
||||
command,
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)activate_ready,
|
||||
g_object_ref (ctx->self)); /* we pass the bearer object! */
|
||||
@@ -588,6 +592,7 @@ authenticate (Dial3gppContext *ctx)
|
||||
command,
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)authenticate_ready,
|
||||
ctx);
|
||||
@@ -693,6 +698,7 @@ disconnect_3gpp (MMBroadbandBearer *self,
|
||||
command,
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)disconnect_owancall_ready,
|
||||
ctx);
|
||||
|
||||
@@ -481,6 +481,7 @@ disable_location_gathering (MMIfaceModemLocation *self,
|
||||
"_OGPS=0",
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)gps_disabled_ready,
|
||||
result);
|
||||
@@ -582,6 +583,7 @@ parent_enable_location_gathering_ready (MMIfaceModemLocation *self,
|
||||
"_OGPS=2",
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)gps_enabled_ready,
|
||||
ctx);
|
||||
@@ -659,7 +661,7 @@ setup_ports (MMBroadbandModem *self)
|
||||
mm_base_modem_at_command_full (MM_BASE_MODEM (self),
|
||||
gps_control_port,
|
||||
"_OGPS=0",
|
||||
3, FALSE, NULL, NULL, NULL);
|
||||
3, FALSE, FALSE, NULL, NULL, NULL);
|
||||
|
||||
/* Add handler for the NMEA traces */
|
||||
mm_gps_serial_port_add_trace_handler (gps_data_port,
|
||||
|
||||
@@ -173,6 +173,7 @@ dial_3gpp_context_step (Dial3gppContext *ctx)
|
||||
"+CGATT=1",
|
||||
10,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)cgatt_ready,
|
||||
ctx);
|
||||
@@ -201,6 +202,7 @@ dial_3gpp_context_step (Dial3gppContext *ctx)
|
||||
command,
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)authenticate_ready,
|
||||
ctx);
|
||||
@@ -218,6 +220,7 @@ dial_3gpp_context_step (Dial3gppContext *ctx)
|
||||
command,
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)scact_ready,
|
||||
ctx);
|
||||
@@ -350,6 +353,7 @@ disconnect_3gpp (MMBroadbandBearer *self,
|
||||
command,
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)disconnect_scact_ready,
|
||||
result);
|
||||
|
||||
@@ -267,6 +267,7 @@ load_allowed_modes (MMIfaceModem *self,
|
||||
"!SELRAT?",
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)selrat_query_ready,
|
||||
result);
|
||||
@@ -381,6 +382,7 @@ set_allowed_modes (MMIfaceModem *self,
|
||||
command,
|
||||
3,
|
||||
FALSE,
|
||||
FALSE, /* raw */
|
||||
NULL, /* cancellable */
|
||||
(GAsyncReadyCallback)selrat_set_ready,
|
||||
result);
|
||||
|
||||
Reference in New Issue
Block a user