public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] how well supported is hci_read_rssi and hci_read_link_quality?
@ 2004-06-23  5:19 Albert Huang
  2004-06-23  7:31 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Albert Huang @ 2004-06-23  5:19 UTC (permalink / raw)
  To: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 567 bytes --]

Hello,

Does anyone have a rough estimate, or even a list, of the devices that
support hci_read_rssi and hci_read_link_quality?  Am I correct in
assuming that some devices supoprt it and some don't?  For example, a
program that reads rssi and link quality that works beautifully on an
x86 with a d-link usb bluetooth dongle doesn't seem to work at all on
an HP ipaq h5550.  On the ipaq, the link quality is always 0 and rssi
is always 255.

The attached patch changes cmd_lq in hcitool.c to print out an
unsigned integer instead of a signed integer.

thanks.
-albert

[-- Attachment #2: cmd_lq.diff --]
[-- Type: text/plain, Size: 483 bytes --]

Index: tools/hcitool.c
===================================================================
RCS file: /cvsroot/bluez/utils/tools/hcitool.c,v
retrieving revision 1.44
diff -u -r1.44 hcitool.c
--- tools/hcitool.c	12 Jun 2004 09:41:17 -0000	1.44
+++ tools/hcitool.c	23 Jun 2004 05:17:27 -0000
@@ -982,7 +982,7 @@
 				rp.status);
 		exit(1);
 	}
-	printf("Link quality: %d\n", rp.link_quality);
+	printf("Link quality: %u\n", rp.link_quality);
 
 	close(dd);
 	free(cr);

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-23 15:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-23  5:19 [Bluez-devel] how well supported is hci_read_rssi and hci_read_link_quality? Albert Huang
2004-06-23  7:31 ` Marcel Holtmann
2004-06-23 15:12   ` Albert Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox