From: Philippe Nunes Date: Wed, 5 Sep 2012 16:56:21 +0000 (+0200) Subject: call-barring: SS query is made with given cls X-Git-Tag: 1.11~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ee9b5af782b98a00986c187a1efc60f87844833;p=platform%2Fupstream%2Fofono.git 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. --- diff --git a/src/call-barring.c b/src/call-barring.c index 68533c2..845cbc3 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);