cdma: return numeric ERI too

This commit is contained in:
Dan Williams
2010-05-18 13:04:43 -07:00
parent 533ffaddc4
commit 9cbd68e96c
3 changed files with 6 additions and 1 deletions

View File

@@ -1437,7 +1437,7 @@ reg_query_speri_done (MMAtSerialPort *port,
goto done;
p = mm_strip_tag (response->str, "$SPERI:");
if (!p || !mm_cdma_parse_eri (p, &roam, NULL))
if (!p || !mm_cdma_parse_eri (p, &roam, NULL, NULL))
goto done;
/* Change the 1x and EVDO registration states to roaming if they were

View File

@@ -688,6 +688,7 @@ static const EriItem eris[] = {
gboolean
mm_cdma_parse_eri (const char *reply,
gboolean *out_roaming,
guint32 *out_ind,
const char **out_desc)
{
long int ind;
@@ -700,6 +701,9 @@ mm_cdma_parse_eri (const char *reply,
errno = 0;
ind = strtol (reply, NULL, 10);
if (errno == 0) {
if (out_ind)
*out_ind = ind;
while (iter->num != -1) {
if (iter->num == ind) {
*out_roaming = iter->roam_ind;

View File

@@ -51,6 +51,7 @@ gboolean mm_cdma_parse_spservice_response (const char *reply,
gboolean mm_cdma_parse_eri (const char *reply,
gboolean *out_roaming,
guint32 *out_ind,
const char **out_desc);
gboolean mm_gsm_parse_cscs_support_response (const char *reply,