summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhilippe Nunes <philippe.nunes@linux.intel.com>2012-09-05 18:56:21 +0200
committerDenis Kenzior <denkenz@gmail.com>2012-09-05 15:03:38 -0500
commit0ee9b5af782b98a00986c187a1efc60f87844833 (patch)
treef9b2bcb9faf5477ee4f4acacdc7e4ac466aee2d4 /src
parent1bb7222d83f4d601f697c9736054439d1360f0d2 (diff)
downloadofono-0ee9b5af782b98a00986c187a1efc60f87844833.tar.bz2
call-barring: SS query is made with given cls
The default class is applied in the query form when no class is specified in the SS code.
Diffstat (limited to 'src')
-rw-r--r--src/call-barring.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/call-barring.c b/src/call-barring.c
index 68533c2a..845cbc38 100644
--- a/src/call-barring.c
+++ b/src/call-barring.c
@@ -310,7 +310,8 @@ static void cb_ss_query_next_lock(struct ofono_call_barring *cb)
{
int cls;
- cls = cb->ss_req_cls | BEARER_CLASS_DEFAULT;
+ cls = (cb->ss_req_type == SS_CONTROL_TYPE_QUERY) ?
+ cb->ss_req_cls : cb->ss_req_cls | BEARER_CLASS_DEFAULT;
cb->driver->query(cb, cb_locks[cb->query_next].fac, cls,
cb_ss_query_next_lock_callback, cb);