Skip to contentSkip to conversation

stemodem: Use macro for context status.

PATCH In review Marit Henriksen 2 participants 2 messages Jan 14, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 stemodem: Use macro for context status.

From: Marit Henriksen <[email protected]>

---
 drivers/stemodem/gprs-context.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/stemodem/gprs-context.c +2 -1
index 1762fb3..39b5fb5 100644
@@ -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);
Signature · 1 line
1.7.1
#1 lore raw

Hi Marit,

Quoted 2 lines
 drivers/stemodem/gprs-context.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

patch has been applied. Thanks.

Regards

Marcel