summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Figiel <p.figiel@camlintechnologies.com>2017-12-21 14:38:01 +0100
committerAleksander Morgado <aleksander@aleksander.es>2017-12-21 14:38:19 +0100
commit6c1c3405c68bc86c873f0bae6595c3917358f530 (patch)
tree5e8896b6098917db04f581ea981f32d65ec86e76
parent7687c375d39e9623627f21212ef5c17a4126da5e (diff)
downloadModemManager-6c1c3405c68bc86c873f0bae6595c3917358f530.tar.gz
bearer-qmi: fix connect with libqmi lower than 1.18
Patch updated by Aleksander Morgado <aleksander@aleksander.es> to also fix the same issue in the IPv6 connection logic.
-rw-r--r--src/mm-bearer-qmi.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c
index c75d5e4b0..d3e692ea7 100644
--- a/src/mm-bearer-qmi.c
+++ b/src/mm-bearer-qmi.c
@@ -1156,8 +1156,11 @@ connect_context_step (ConnectContext *ctx)
ctx->cancellable,
(GAsyncReadyCallback) connect_enable_indications_ipv4_ready,
ctx);
-#endif
return;
+#else
+ /* Just fall down */
+ ctx->step++;
+#endif
case CONNECT_STEP_START_NETWORK_IPV4: {
QmiMessageWdsStartNetworkInput *input;
@@ -1259,8 +1262,11 @@ connect_context_step (ConnectContext *ctx)
ctx->cancellable,
(GAsyncReadyCallback) connect_enable_indications_ipv6_ready,
ctx);
-#endif
return;
+#else
+ /* Just fall down */
+ ctx->step++;
+#endif
case CONNECT_STEP_START_NETWORK_IPV6: {
QmiMessageWdsStartNetworkInput *input;