From 0ee9b5af782b98a00986c187a1efc60f87844833 Mon Sep 17 00:00:00 2001 From: Philippe Nunes Date: Wed, 5 Sep 2012 18:56:21 +0200 Subject: [PATCH] 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. --- src/call-barring.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);