linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Saurabh Thukral <saurabhth@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Inquiry Result with repeated set of MAC addresses - Is it a problem with Bluetooth device ?
Date: Sun, 6 Jun 2010 23:09:24 +0800	[thread overview]
Message-ID: <20100606150924.GA8474@jh-x301> (raw)
In-Reply-To: <AANLkTimcKrBh6kVCo1mtZgqxQkPip8xg8ADQhEuFJc82@mail.gmail.com>

Hi,

On Sun, Jun 06, 2010, Saurabh Thukral wrote:
> This behaviour is observed on HP Elitebook using broadcom bluetooth
> adaptor. However when I run the same test on Compaq 510 laptop having
> the same adaptor, only a single Inquiry result is returned and then
> inquiry completes.

Is there any difference between the host operating systems and bluetooth
stacks on these two laptops?

> Please note that this is irrespective of whether there is standard
> inquiry or Inquiry with RSSI.

If you get the behavior for non-RSSI events it sounds like a bug in the
controller.

> I think having multiple inquiry results
> all having same MAC address is wrong for following 2 reasons:
> 
> 1) The procedure of discovery of devices becomes longer
> 
> 2) I programmed getting inquiry result by sending hci_send_cmd and
> then polling on hci socket fd for all the events. Since I would be
> getting multiple events all having result for the same MAC address,
> this creates a burden to weed out all duplicate entries and return one
> entry containing MAC address only. I think this way is wrong.

You're entitled to your opinion and I do understand it to some extent,
but unfortunately I'm not aware of any standard HCI commands or
parameters through which you could make the controller not exhibit this
behavior (the behavior with non-RSSI events seems like a bug in the
controller though). Btw, why not let bluetoothd take care of the
discovery for you? It already has code for detecting duplicate BT
addresses (though it will send multiple D-Bus signals for them in case a
UI is interested in the signal strength variations).

Johan

  reply	other threads:[~2010-06-06 15:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-06  5:12 Inquiry Result with repeated set of MAC addresses - Is it a problem with Bluetooth device ? Saurabh Thukral
2010-06-06  8:56 ` Johan Hedberg
2010-06-06 14:06   ` Saurabh Thukral
2010-06-06 15:09     ` Johan Hedberg [this message]
2010-06-06 18:04 ` Manuel Naranjo

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=20100606150924.GA8474@jh-x301 \
    --to=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=saurabhth@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).