projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ee9b5a
)
atmodem: specify class for call barring query
author
Philippe Nunes
<philippe.nunes@linux.intel.com>
Wed, 5 Sep 2012 16:56:22 +0000
(18:56 +0200)
committer
Denis Kenzior
<denkenz@gmail.com>
Wed, 5 Sep 2012 20:04:18 +0000
(15:04 -0500)
class is specified when querying the call barring status if
the class is not the default (7 - voice, data and fax)
drivers/atmodem/call-barring.c
patch
|
blob
|
history
diff --git
a/drivers/atmodem/call-barring.c
b/drivers/atmodem/call-barring.c
index
2efd4e9
..
a2417c7
100644
(file)
--- a/
drivers/atmodem/call-barring.c
+++ b/
drivers/atmodem/call-barring.c
@@
-89,7
+89,10
@@
static void at_call_barring_query(struct ofono_call_barring *cb,
if (strlen(lock) != 2)
goto error;
- snprintf(buf, sizeof(buf), "AT+CLCK=\"%s\",2", lock);
+ if (cls == 7)
+ snprintf(buf, sizeof(buf), "AT+CLCK=\"%s\",2", lock);
+ else
+ snprintf(buf, sizeof(buf), "AT+CLCK=\"%s\",2,,%d", lock, cls);
if (g_at_chat_send(chat, buf, clck_prefix,
clck_query_cb, cbd, g_free) > 0)