aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-12-28 08:13:40 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-12-28 08:13:40 +0100
commitb5257491b040ae4873194573608de267a9375bb1 (patch)
tree9c220a79043888bd455483bdb749bf4b391bb93c
parent95598e2e37463e95555c296a7ae023e7ded46408 (diff)
sierra: fix 3GPP dialling sequence
There was a missing step++ when falling down to the next step in the switch(), which was preventing a proper connection.
-rw-r--r--plugins/sierra/mm-broadband-bearer-sierra.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/sierra/mm-broadband-bearer-sierra.c b/plugins/sierra/mm-broadband-bearer-sierra.c
index d46d83a3..17473d12 100644
--- a/plugins/sierra/mm-broadband-bearer-sierra.c
+++ b/plugins/sierra/mm-broadband-bearer-sierra.c
@@ -41,8 +41,8 @@ typedef enum {
DIAL_3GPP_STEP_FIRST,
DIAL_3GPP_STEP_PS_ATTACH,
DIAL_3GPP_STEP_AUTHENTICATE,
- DIAL_3GPP_CONNECT,
- DIAL_3GPP_LAST
+ DIAL_3GPP_STEP_CONNECT,
+ DIAL_3GPP_STEP_LAST
} Dial3gppStep;
typedef struct {
@@ -247,7 +247,10 @@ dial_3gpp_context_step (Dial3gppContext *ctx)
return;
}
- case DIAL_3GPP_CONNECT:
+ /* Fall down */
+ ctx->step++;
+
+ case DIAL_3GPP_STEP_CONNECT:
if (!MM_IS_AT_SERIAL_PORT (ctx->data)) {
gchar *command;
@@ -277,7 +280,7 @@ dial_3gpp_context_step (Dial3gppContext *ctx)
ctx);
return;
- case DIAL_3GPP_LAST:
+ case DIAL_3GPP_STEP_LAST:
g_simple_async_result_set_op_res_gboolean (ctx->result, TRUE);
dial_3gpp_context_complete_and_free (ctx);
return;