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)
commita3d4e20a88f54571d794cca365f232bfed0669bb
tree68cccf2a12d31c8dc98413831caf35e0f01606a6
parent44b5f7d0cb1939497a0858d9f43d89f039f85887
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