diff options
author | Marit Henriksen <marit.henriksen@stericsson.com> | 2011-01-14 12:18:04 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-01-14 14:32:58 +0100 |
commit | fb60a960275f7efc95136c12f30ff3a6e4771ac2 (patch) | |
tree | 20db2eaa32bf698576fbc9ca0c3f9df011037b49 /drivers/stemodem/gprs-context.c | |
parent | 12b417f4e93a2b5883ccce7437ecb7f615747dd3 (diff) | |
download | ofono-fb60a960275f7efc95136c12f30ff3a6e4771ac2.tar.bz2 |
stemodem: Always run +CGACT? when we get +CGEV.
Remove checks for certain values of CGEV, and instead we will
always run CGACT? to check what contexts that are active.
Diffstat (limited to 'drivers/stemodem/gprs-context.c')
-rw-r--r-- | drivers/stemodem/gprs-context.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/stemodem/gprs-context.c b/drivers/stemodem/gprs-context.c index 78547edc..0be42389 100644 --- a/drivers/stemodem/gprs-context.c +++ b/drivers/stemodem/gprs-context.c @@ -532,13 +532,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, |