summaryrefslogtreecommitdiff
path: root/drivers/stemodem
diff options
context:
space:
mode:
authorMarit Henriksen <marit.henriksen@stericsson.com>2011-01-14 12:17:21 +0100
committerMarcel Holtmann <marcel@holtmann.org>2011-01-14 14:32:16 +0100
commit12b417f4e93a2b5883ccce7437ecb7f615747dd3 (patch)
tree8846d4379c8d1067804241db85bb4d9160d49975 /drivers/stemodem
parent140d092a00e7fafd81ec2e37a2b1f9a62fd6a608 (diff)
stemodem: Use macro for context status.
Diffstat (limited to 'drivers/stemodem')
-rw-r--r--drivers/stemodem/gprs-context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/stemodem/gprs-context.c b/drivers/stemodem/gprs-context.c
index 4325628a..78547edc 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);