Linux bluetooth development
 help / color / mirror / Atom feed
From: "Ulrich Bürgi" <buergi@iam.unibe.ch>
To: linux-bluetooth@vger.kernel.org
Subject: Re: Problem with inquiry result with rssi
Date: Fri, 21 Jan 2011 10:14:46 +0100	[thread overview]
Message-ID: <4D394E86.9070109@iam.unibe.ch> (raw)
In-Reply-To: <AANLkTinWBAvaFv-nS7gPvfGzWyC8S3vzm_BpfKo3qWhb@mail.gmail.com>

Hi Vinicius,


>>         if (hci_send_cmd(sock, OGF_HOST_CTL, OCF_WRITE_INQUIRY_MODE,
>> WRITE_INQUIRY_MODE_RP_SIZE,&cp)<  0) {
>
> Taking a look at your code, a few things look out of place: you are
> using cp uninitialized, it is expecting a write_inquiry_mode_cp, not a
> inquiry_cp and the plen parameter seems wrong.

Silly me! How could I have missed this?
Well, now I use write_inquiry_mode_cp with a mode set to 0x01 and the 
proper plen.
Everything works as expected!

Thank you very much for the quick help!
Ulrich

      reply	other threads:[~2011-01-21  9:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-20 15:44 Problem with inquiry result with rssi Ulrich Bürgi
2011-01-21  4:58 ` Vinicius Gomes
2011-01-21  9:14   ` Ulrich Bürgi [this message]

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=4D394E86.9070109@iam.unibe.ch \
    --to=buergi@iam.unibe.ch \
    --cc=linux-bluetooth@vger.kernel.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