Skip to contentSkip to conversation

stemodem: Always run +CGACT? when we get +CGEV.

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stemodem: Always run +CGACT? when we get +CGEV.

From: Marit Henriksen <[email protected]>

Remove checks for certain values of CGEV, and instead we will always run CGACT? to check what contexts that are active.

---
 drivers/stemodem/gprs-context.c |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)
drivers/stemodem/gprs-context.c +3 -7
index 1762fb3..a084cd4 100644
@@ -531,13 +531,9 @@ static void cgev_notify(GAtResult *result, gpointer user_data)
 	if (!g_at_result_iter_next_unquoted_string(&iter, &event))
 		return;
 
-	if (g_str_has_prefix(event, "NW REACT ") ||
-			g_str_has_prefix(event, "NW DEACT ") ||
-			g_str_has_prefix(event, "ME DEACT ")) {
-		/* Ask what primary contexts are active now */
-		g_at_chat_send(gcd->chat, "AT+CGACT?", cgact_prefix,
-				ste_cgact_read_cb, gc, NULL);
-	}
+	/* Ask what primary contexts are active now */
+	g_at_chat_send(gcd->chat, "AT+CGACT?", cgact_prefix,
+			ste_cgact_read_cb, gc, NULL);
 }
 
 static int ste_gprs_context_probe(struct ofono_gprs_context *gc,
Signature · 1 line
1.7.1
#1 lore raw

Hi Marit,

Quoted 5 lines

Remove checks for certain values of CGEV, and instead we will always run CGACT? to check what contexts that are active.

---
 drivers/stemodem/gprs-context.c |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

patch has been applied. Thanks.

Regards

Marcel