]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Sort to-be-resolved devices by RSSI during discovery
authorJohan Hedberg <johan.hedberg@intel.com>
Sun, 8 Jan 2012 22:53:02 +0000 (00:53 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:25 +0000 (17:01 +0200)
commitdefbb08f41c51110408fbdd5e7109f89ef900d1e
tree68cccf2a12d31c8dc98413831caf35e0f01606a6
parentc6cbba3d0550cdc147359703795f2ab28e6f2fe0
Bluetooth: Sort to-be-resolved devices by RSSI during discovery

This patch makes sure that devices with stronger signal (RSSI closer to
0) are sorted first in the resolve list and will therefore get their
names resolved first during device discovery. Since it's more likely
that the device the user is trying to discover has a strong signal due
to its proximity this ensures that the user gets the "device found"
event for it more quickly.

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