bearer-mbim: plug user cancellable to all MBIM operations
This commit is contained in:
@@ -1147,7 +1147,7 @@ connect_context_step (GTask *task)
|
|||||||
mbim_device_command (mm_port_mbim_peek_device (ctx->mbim),
|
mbim_device_command (mm_port_mbim_peek_device (ctx->mbim),
|
||||||
message,
|
message,
|
||||||
30,
|
30,
|
||||||
NULL,
|
g_task_get_cancellable (task),
|
||||||
(GAsyncReadyCallback)packet_service_set_ready,
|
(GAsyncReadyCallback)packet_service_set_ready,
|
||||||
task);
|
task);
|
||||||
return;
|
return;
|
||||||
@@ -1203,7 +1203,7 @@ connect_context_step (GTask *task)
|
|||||||
mbim_device_command (device,
|
mbim_device_command (device,
|
||||||
message,
|
message,
|
||||||
10,
|
10,
|
||||||
NULL,
|
g_task_get_cancellable (task),
|
||||||
(GAsyncReadyCallback)check_disconnected_ready,
|
(GAsyncReadyCallback)check_disconnected_ready,
|
||||||
task);
|
task);
|
||||||
return;
|
return;
|
||||||
@@ -1215,7 +1215,7 @@ connect_context_step (GTask *task)
|
|||||||
mbim_device_command (mm_port_mbim_peek_device (ctx->mbim),
|
mbim_device_command (mm_port_mbim_peek_device (ctx->mbim),
|
||||||
message,
|
message,
|
||||||
MM_BASE_BEARER_DEFAULT_DISCONNECTION_TIMEOUT,
|
MM_BASE_BEARER_DEFAULT_DISCONNECTION_TIMEOUT,
|
||||||
NULL,
|
g_task_get_cancellable (task),
|
||||||
(GAsyncReadyCallback)ensure_disconnected_ready,
|
(GAsyncReadyCallback)ensure_disconnected_ready,
|
||||||
task);
|
task);
|
||||||
return;
|
return;
|
||||||
@@ -1257,7 +1257,7 @@ connect_context_step (GTask *task)
|
|||||||
mbim_device_command (mm_port_mbim_peek_device (ctx->mbim),
|
mbim_device_command (mm_port_mbim_peek_device (ctx->mbim),
|
||||||
message,
|
message,
|
||||||
MM_BASE_BEARER_DEFAULT_CONNECTION_TIMEOUT,
|
MM_BASE_BEARER_DEFAULT_CONNECTION_TIMEOUT,
|
||||||
NULL,
|
g_task_get_cancellable (task),
|
||||||
(GAsyncReadyCallback)connect_set_ready,
|
(GAsyncReadyCallback)connect_set_ready,
|
||||||
task);
|
task);
|
||||||
return;
|
return;
|
||||||
@@ -1285,7 +1285,7 @@ connect_context_step (GTask *task)
|
|||||||
mbim_device_command (mm_port_mbim_peek_device (ctx->mbim),
|
mbim_device_command (mm_port_mbim_peek_device (ctx->mbim),
|
||||||
message,
|
message,
|
||||||
60,
|
60,
|
||||||
NULL,
|
g_task_get_cancellable (task),
|
||||||
(GAsyncReadyCallback)ip_configuration_query_ready,
|
(GAsyncReadyCallback)ip_configuration_query_ready,
|
||||||
task);
|
task);
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user