cdma: handle devices that don't prefix CSS result with +CSS:
Like the Sanyo SCP-3800 (Sprint Katana LX). Make up your freakin' mind people, either prefix *all* responses with the command stem, or don't. But just pick one dammit.
This commit is contained in:
@@ -510,14 +510,8 @@ serving_system_done (MMSerialPort *port,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strstr (reply, "+CSS: ")) {
|
if (strstr (reply, "+CSS: "))
|
||||||
info->error = g_error_new_literal (MM_MODEM_ERROR, MM_MODEM_ERROR_GENERAL,
|
reply += 6;
|
||||||
"Could not parse Serving System results.");
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Got valid reply */
|
|
||||||
reply += 6;
|
|
||||||
|
|
||||||
num = sscanf (reply, "%d, %c, %d", &class, &band, &sid);
|
num = sscanf (reply, "%d, %c, %d", &class, &band, &sid);
|
||||||
if (num != 3)
|
if (num != 3)
|
||||||
@@ -541,8 +535,8 @@ serving_system_done (MMSerialPort *port,
|
|||||||
mm_callback_info_set_data (info, "sid", GUINT_TO_POINTER (sid), NULL);
|
mm_callback_info_set_data (info, "sid", GUINT_TO_POINTER (sid), NULL);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
info->error = g_error_new (MM_MODEM_ERROR, MM_MODEM_ERROR_GENERAL,
|
info->error = g_error_new_literal (MM_MODEM_ERROR, MM_MODEM_ERROR_GENERAL,
|
||||||
"%s", "Could not parse signal quality results");
|
"Could not parse Serving System results.");
|
||||||
|
|
||||||
out:
|
out:
|
||||||
mm_callback_info_schedule (info);
|
mm_callback_info_schedule (info);
|
||||||
|
Reference in New Issue
Block a user