diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-01-04 06:39:52 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-13 10:01:20 -0500 |
commit | 3175405b906a85ed2bad21e09c444266e4a05a8e (patch) | |
tree | cf75dda123120a5a48ee322c3248ea73d37cbdcc /include/net/bluetooth/hci_core.h | |
parent | 561aafbcb2e3f8fee11d3781f866c7b4c4f93a28 (diff) |
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>
Diffstat (limited to 'include/net/bluetooth/hci_core.h')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 2999b6e2c3f0..236f7f0e596e 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -384,7 +384,7 @@ struct inquiry_entry *hci_inquiry_cache_lookup(struct hci_dev *hdev, | |||
384 | bdaddr_t *bdaddr); | 384 | bdaddr_t *bdaddr); |
385 | struct inquiry_entry *hci_inquiry_cache_lookup_unknown(struct hci_dev *hdev, | 385 | struct inquiry_entry *hci_inquiry_cache_lookup_unknown(struct hci_dev *hdev, |
386 | bdaddr_t *bdaddr); | 386 | bdaddr_t *bdaddr); |
387 | void hci_inquiry_cache_update(struct hci_dev *hdev, struct inquiry_data *data, | 387 | bool hci_inquiry_cache_update(struct hci_dev *hdev, struct inquiry_data *data, |
388 | bool name_known); | 388 | bool name_known); |
389 | 389 | ||
390 | /* ----- HCI Connections ----- */ | 390 | /* ----- HCI Connections ----- */ |