Bluetooth: Return updated name state with hci_inquiry_cache_update
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 4 Jan 2012 11:39:52 +0000 (13:39 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:20 +0000 (17:01 +0200)
commit3175405b906a85ed2bad21e09c444266e4a05a8e
treecf75dda123120a5a48ee322c3248ea73d37cbdcc
parent561aafbcb2e3f8fee11d3781f866c7b4c4f93a28
Bluetooth: Return updated name state with hci_inquiry_cache_update

If user-space has already confirmed the name for a remote device we
shouldn't request confirmation again. The simplest way to do this is to
return the name state from hci_inquiry_cache_update (if it is anything
else than unknown then we do not need confirmation from user-space).

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/hci_event.c