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.
This commit is contained in:
Aleksander Morgado
2012-12-28 08:13:40 +01:00
parent 95598e2e37
commit b5257491b0
+7 -4
View File
@@ -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;