summaryrefslogtreecommitdiffstats
path: root/drivers/atmodem
diff options
context:
space:
mode:
authorPhilippe Nunes <philippe.nunes@linux.intel.com>2012-09-05 18:56:22 +0200
committerDenis Kenzior <denkenz@gmail.com>2012-09-05 15:04:18 -0500
commit006a37cdf8f7580b334657250dc589cbf99ac3af (patch)
tree2e4ad0fdee80a565b3c928246a16df1e94700a7d /drivers/atmodem
parent0ee9b5af782b98a00986c187a1efc60f87844833 (diff)
downloadofono-006a37cdf8f7580b334657250dc589cbf99ac3af.tar.bz2
atmodem: specify class for call barring query
class is specified when querying the call barring status if the class is not the default (7 - voice, data and fax)
Diffstat (limited to 'drivers/atmodem')
-rw-r--r--drivers/atmodem/call-barring.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/atmodem/call-barring.c b/drivers/atmodem/call-barring.c
index 2efd4e92..a2417c7d 100644
--- 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)