modem-helpers: allow leading zeroes in CREG/CGREG responses

This commit is contained in:
Aleksander Morgado
2012-02-14 16:00:15 +01:00
parent 5589df8946
commit 2a12322a80
2 changed files with 2 additions and 2 deletions

View File

@@ -542,7 +542,7 @@ mm_3gpp_parse_pdp_query_response (const gchar *reply,
#define CREG7 "\\+(CREG|CGREG):\\s*0*([0-9]),\\s*0*([0-9])\\s*,\\s*([^,\\s]*)\\s*,\\s*([^,\\s]*)\\s*,\\s*([^,\\s]*)\\s*,\\s*[^,\\s]*"
/* +CREG: <stat>,<lac>,<ci>,<AcT>,<RAC> (ETSI 27.007 v9.20 CREG=2 unsolicited with RAC) */
#define CREG8 "\\+(CREG|CGREG):\\s*(\\d{1})\\s*,\\s*([^,\\s]*)\\s*,\\s*([^,\\s]*)\\s*,\\s*(\\d{1,2})\\s*,\\s*([^,\\s]*)"
#define CREG8 "\\+(CREG|CGREG):\\s*0*([0-9])\\s*,\\s*([^,\\s]*)\\s*,\\s*([^,\\s]*)\\s*,\\s*0*([0-9])\\s*,\\s*([^,\\s]*)"
GPtrArray *
mm_3gpp_creg_regex_get (gboolean solicited)