gsm: prefer AT+CIND signal quality for modems that support it (lp:682282) (bgo #636040)

Some devices always reply with 99 for AT+CSQ when in UMTS mode (Linktop LW273)
so if the modem supports it, use CIND/CIEV instead.
This commit is contained in:
Dan Williams
2010-11-29 16:49:30 -06:00
parent 586c9ec2c5
commit ea0797cbec
4 changed files with 115 additions and 91 deletions

View File

@@ -70,11 +70,13 @@ char *mm_create_device_identifier (guint vid,
gboolean debug);
typedef struct CindResponse CindResponse;
GHashTable *mm_parse_cind_response (const char *reply, GError **error);
const char *cind_response_get_desc (CindResponse *r);
gint cind_response_get_index (CindResponse *r);
gint cind_response_get_min (CindResponse *r);
gint cind_response_get_max (CindResponse *r);
GHashTable *mm_parse_cind_test_response (const char *reply, GError **error);
const char *cind_response_get_desc (CindResponse *r);
guint cind_response_get_index (CindResponse *r);
gint cind_response_get_min (CindResponse *r);
gint cind_response_get_max (CindResponse *r);
GByteArray *mm_parse_cind_query_response(const char *reply, GError **error);
#endif /* MM_MODEM_HELPERS_H */