OSDN Git Service

Updated ATD string parsing
authorMallikarjuna GB <gbmalli@codeaurora.org>
Thu, 21 May 2015 13:47:06 +0000 (19:17 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 5 Jun 2015 01:01:14 +0000 (01:01 +0000)
This change makes sure that the Dial string
parsing accepts 'pause' and 'wait' characters
too.

Change-Id: Ie56b355199a3d4292d0ee9913852292147ccf55f

bta/sys/utl.c

index c2b0b4c..0649924 100644 (file)
@@ -287,7 +287,9 @@ BOOLEAN utl_isdialstr(const char *p_s)
     {
         if(!(((p_s[i] >= '0') && (p_s[i] <= '9'))
             || (p_s[i] == '*') || (p_s[i] == '+') || (p_s[i] == '#') || (p_s[i] == ';')
-            || ((p_s[i] >= 'A') && (p_s[i] <= 'C'))))
+            || ((p_s[i] >= 'A') && (p_s[i] <= 'C'))
+            || ((p_s[i] == 'p') || (p_s[i] == 'P')
+            || (p_s[i] == 'w') || (p_s[i] == 'W'))))
             return FALSE;
     }