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.
This commit is contained in:
Philippe Nunes 2012-09-05 18:56:21 +02:00 committed by Denis Kenzior
parent 1bb7222d83
commit 0ee9b5af78
1 changed files with 2 additions and 1 deletions

View File

@ -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);