From: Tony Espy <espy@canonical.com>
To: ofono@ofono.org
Subject: [PATCH 2/3] rilmodem: fix call_barring_query_cb
Date: Tue, 15 Dec 2015 11:34:34 -0500 [thread overview]
Message-ID: <1450197275-5463-2-git-send-email-espy@canonical.com> (raw)
In-Reply-To: <1450197275-5463-1-git-send-email-espy@canonical.com>
[-- Attachment #1: Type: text/plain, Size: 800 bytes --]
The return value from a RIL_REQUEST_GET_FACILITY_LOCK
is the TS 27.007 service class bit vector of services
for the specified barring facility. The value canf be
zero, which indicates "disabled for all".
---
drivers/rilmodem/call-barring.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rilmodem/call-barring.c b/drivers/rilmodem/call-barring.c
index 719bbe1..eb6e7c4 100644
--- a/drivers/rilmodem/call-barring.c
+++ b/drivers/rilmodem/call-barring.c
@@ -67,7 +67,7 @@ static void ril_call_barring_query_cb(struct ril_msg *message,
bearer_class = parcel_r_int32(&rilp);
- if (bearer_class < 1 || rilp.malformed)
+ if (bearer_class < 0 || rilp.malformed)
goto error;
g_ril_append_print_buf(bd->ril, "{%d}", bearer_class);
--
2.1.4
next prev parent reply other threads:[~2015-12-15 16:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-15 16:34 [PATCH 1/3] unit: add new test-rilmodem-cb Tony Espy
2015-12-15 16:34 ` Tony Espy [this message]
2015-12-15 16:34 ` [PATCH 3/3] build: add support for " Tony Espy
2015-12-15 18:23 ` [PATCH 1/3] unit: add " Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1450197275-5463-2-git-send-email-espy@canonical.com \
--to=espy@canonical.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox