From: Marit Henriksen <marit.henrik...@stericsson.com> --- drivers/stemodem/gprs-context.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/stemodem/gprs-context.c b/drivers/stemodem/gprs-context.c index 1762fb3..39b5fb5 100644 --- a/drivers/stemodem/gprs-context.c +++ b/drivers/stemodem/gprs-context.c @@ -48,6 +48,7 @@ #include "caif_socket.h" #include "if_caif.h" #include "caif_rtnl.h" +#include "common.h" #define MAX_CAIF_DEVICES 4 #define MAX_DNS 2 @@ -500,7 +501,7 @@ static void ste_cgact_read_cb(gboolean ok, GAtResult *result, if (!g_at_result_iter_next_number(&iter, &state)) continue; - if (state == 1) + if (state == CONTEXT_STATUS_ACTIVATED) continue; ofono_gprs_context_deactivated(gc, gcd->active_context); -- 1.7.1 _______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono