summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorRajat Jain <rajatja@google.com>2019-01-24 18:28:13 -0500
committerMarcel Holtmann <marcel@holtmann.org>2019-01-25 02:46:32 -0500
commite2bef3847e3d0d57dcf316de50c4b1a5a91816b7 (patch)
tree8eddb66db738fac8ad032bb9785de06256beaec5 /include/net/bluetooth
parentb4dfbbd1803d81b51bf2c47b182a7029b476d8e2 (diff)
Bluetooth: Allow driver specific cmd timeout handling
Add a hook to allow the BT driver to do device or command specific handling in case of timeouts. This is to be used by Intel driver to reset the device after certain number of timeouts. Signed-off-by: Rajat Jain <rajatja@google.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
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 e5ea633ea368..094e61e07030 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -437,6 +437,7 @@ struct hci_dev {
437 int (*post_init)(struct hci_dev *hdev); 437 int (*post_init)(struct hci_dev *hdev);
438 int (*set_diag)(struct hci_dev *hdev, bool enable); 438 int (*set_diag)(struct hci_dev *hdev, bool enable);
439 int (*set_bdaddr)(struct hci_dev *hdev, const bdaddr_t *bdaddr); 439 int (*set_bdaddr)(struct hci_dev *hdev, const bdaddr_t *bdaddr);
440 void (*cmd_timeout)(struct hci_dev *hdev);
440}; 441};
441 442
442#define HCI_PHY_HANDLE(handle) (handle & 0xff) 443#define HCI_PHY_HANDLE(handle) (handle & 0xff)