summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann2013-10-15 19:57:40 +0200
committerJohan Hedberg2013-10-15 20:28:42 +0200
commitd1967ff88b3854d1bb002cccd15d28ad0d9223a9 (patch)
treed2f7b58e1b1350c7064d33ec3de2eadb3bb14988 /include/net/bluetooth
parentBluetooth: Move eir_get_length() function into hci_event.c (diff)
downloadkernel-qcow2-linux-d1967ff88b3854d1bb002cccd15d28ad0d9223a9.tar.gz
kernel-qcow2-linux-d1967ff88b3854d1bb002cccd15d28ad0d9223a9.tar.xz
kernel-qcow2-linux-d1967ff88b3854d1bb002cccd15d28ad0d9223a9.zip
Bluetooth: Update class of device on discoverable timeout
When the discoverable timeout triggers and limited discoverable mode was used, then the class of device needs to be updated to remove the limited discoverable bit. To keep the class of device logic in a central place, expose a new function mgmt_discoverable_timeout that can be called from the timeout callback. In case the class of device value needs updating, it will add the HCI command to the transaction. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/hci_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index b076cd9f6683..fc04bc846617 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -1072,6 +1072,7 @@ void mgmt_index_added(struct hci_dev *hdev);
void mgmt_index_removed(struct hci_dev *hdev);
void mgmt_set_powered_failed(struct hci_dev *hdev, int err);
int mgmt_powered(struct hci_dev *hdev, u8 powered);
+void mgmt_discoverable_timeout(struct hci_dev *hdev);
void mgmt_discoverable(struct hci_dev *hdev, u8 discoverable);
void mgmt_connectable(struct hci_dev *hdev, u8 connectable);
void mgmt_write_scan_failed(struct hci_dev *hdev, u8 scan, u8 status);