From: Erik Stackenland <erik@mobileinteraction.com>
To: linux-bluetooth@vger.kernel.org
Subject: bug in hci_read_remote_name?
Date: Mon, 01 Dec 2008 22:43:34 +0100 [thread overview]
Message-ID: <49345A86.1040902@mobileinteraction.com> (raw)
I'm new to bluetooth and BlueZ, so it might be that I just don't know what I'm
talking about but this does not seem right.
The problem is in hci_read_remote_name
<code>
...
char bt[20];
ba2str(&bdaddr, bt);
printf("get name: %s\n", bt);
/* Get the name */
if (hci_read_remote_name(dd, &bdaddr, sizeof(name_str), name_str, timeOut) < 0)
{
return -1;
}
printf("found name: %s\n",name_str);
...
</code>
<printout>
...
get name: 00:17:D5:5A:86:85
get name: 00:1E:45:08:36:28
found name: SGH-X820
...
</printout>
The problem here is that I know for a fact that 00:1E:45:08:36:28 is not
SGH-X820, but should be named W910i, and that 00:17:D5:5A:86:85 is SGH-X820.
I'm using 1000 millis timeout for hci_read_remote_name, so my assumption is that
the time runs out before the response is received and when I ask with an other
bt address a few millis later I get the response for the earlier request.
So is it possible that this is a bug?
System is debian-40r5 standard installation installed today. Dont know how to
check BlueZ version.
Thanks!
next reply other threads:[~2008-12-01 21:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-01 21:43 Erik Stackenland [this message]
2008-12-12 1:52 ` bug in hci_read_remote_name? Marcel Holtmann
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=49345A86.1040902@mobileinteraction.com \
--to=erik@mobileinteraction.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.