* [PATCH] Accept ranges in +CSMS responses.
@ 2009-11-10 6:30 Andrzej Zaborowski
2009-11-10 18:46 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Andrzej Zaborowski @ 2009-11-10 6:30 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 986 bytes --]
---
drivers/atmodem/sms.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/atmodem/sms.c b/drivers/atmodem/sms.c
index 20ab47a..dfccdb4 100644
--- a/drivers/atmodem/sms.c
+++ b/drivers/atmodem/sms.c
@@ -1043,7 +1043,7 @@ static void at_csms_query_cb(gboolean ok, GAtResult *result,
struct sms_data *data = ofono_sms_get_data(sms);
gboolean cnma_supported = FALSE;
GAtResultIter iter;
- int status;
+ int status_min, status_max;
char buf[128];
dump_response("csms_query_cb", ok, result);
@@ -1059,8 +1059,8 @@ static void at_csms_query_cb(gboolean ok, GAtResult *result,
if (!g_at_result_iter_open_list(&iter))
goto out;
- while (g_at_result_iter_next_number(&iter, &status))
- if (status == 1)
+ while (g_at_result_iter_next_range(&iter, &status_min, &status_max))
+ if (status_min <= 1 && 1 <= status_max)
cnma_supported = TRUE;
ofono_debug("CSMS query parsed successfully");
--
1.6.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-10 18:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-10 6:30 [PATCH] Accept ranges in +CSMS responses Andrzej Zaborowski
2009-11-10 18:46 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.