Thread (5 messages) flat view 5 messages, 3 authors, 2011-07-20

Re: [RFC 1/3] Bluetooth: Implement Read RSSI command

From: Anderson Briglia <hidden>
Date: 2011-07-13 18:27:25

Hi Marcel,

On Wed, Jul 13, 2011 at 2:12 PM, Marcel Holtmann [off-list ref] wrote:
Hi Andreson,
quoted
This patch implements helper functions to make Read RSSI command
interceptable by MGMT Interface. It adds a new wrapper in HCI layer and
add a hook to call mgmt_read_rssi_complete when MGMT Interface has been
loaded.

Read RSSI command is defined on Part E, section 7.5.4 of Bluetooth 4.0
Spec.
I think that I mentioned this before. This is not something I like to
see at all. 1:1 copies of HCI commands is pointless.

If you need RSSI results, then something like proper interval and
thresholds should be supported. Also with future Bluetooth SIG work on
having controller driven notifications in this area.
Note that even the RSSI and TX Power are implemented, it is not
possible to userspace request a RSSI or TX Power actively. If
userspace wants to receive RSSI and TX Power from the kernel, it must
add to the "monitored commands" and wait for the responses. Read RSSI
and TX Power Level are not being parsed on mgmt_control().
Maybe I should change the commit message of this patch and the next one.

New Management commands were implemented in the last RFC patch to
monitor selected commands.

Regards,

Anderson Briglia
Regards

Marcel



-- 
INdT - Instituto Nokia de tecnologia
+55 2126 1122
+55 92 8423 3183
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help