]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Store also RSSI for pending advertising reports
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 25 Mar 2014 12:40:52 +0000 (14:40 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 26 Mar 2014 16:31:40 +0000 (09:31 -0700)
commit69a71d3342cadc05c736db4317bc6b8fe110687a
tree0ee4de289e83c9296948c5c0d320793b2d5a38e9
parent1c8d11b687f521ea537dffbc8e40fb8f2ae4bcc6
Bluetooth: Store also RSSI for pending advertising reports

Especially in crowded environments it can become frequent that we have
to send out whatever pending event there is stored. Since user space
has its own filtering of small RSSI changes sending a 0 value will
essentially force user space to wake up the higher layers (e.g. over
D-Bus) even though the RSSI didn't actually change more than the
threshold value.

This patch adds storing also of the RSSI for pending advertising reports
so that we report an as accurate RSSI as possible when we have to send
out the stored information to user space.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_event.c