diff options
| author | Andre Guedes <andre.guedes@openbossa.org> | 2012-02-17 18:39:38 -0500 |
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-19 05:34:55 -0500 |
| commit | 5e0452c00a2e4b04ec1482248c897dacf106f1df (patch) | |
| tree | 34bbd940ed96cc736dcd8dd9311414f8f035839e /include/net/bluetooth | |
| parent | 343f935bfa44189c68527102c409286b0cfc4526 (diff) | |
Bluetooth: Interleaved discovery support
This patch adds interleaved discovery support to MGMT Start
Discovery command.
In case interleaved discovery is not supported (not a dual mode
device), we perform BR/EDR or LE-only discovery according to the
device capabilities.
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 942de7764278..2aafeb3a8793 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
| @@ -716,6 +716,7 @@ void hci_conn_del_sysfs(struct hci_conn *conn); | |||
| 716 | #define lmp_ssp_capable(dev) ((dev)->features[6] & LMP_SIMPLE_PAIR) | 716 | #define lmp_ssp_capable(dev) ((dev)->features[6] & LMP_SIMPLE_PAIR) |
| 717 | #define lmp_no_flush_capable(dev) ((dev)->features[6] & LMP_NO_FLUSH) | 717 | #define lmp_no_flush_capable(dev) ((dev)->features[6] & LMP_NO_FLUSH) |
| 718 | #define lmp_le_capable(dev) ((dev)->features[4] & LMP_LE) | 718 | #define lmp_le_capable(dev) ((dev)->features[4] & LMP_LE) |
| 719 | #define lmp_bredr_capable(dev) (!((dev)->features[4] & LMP_NO_BREDR)) | ||
| 719 | 720 | ||
| 720 | /* ----- Extended LMP capabilities ----- */ | 721 | /* ----- Extended LMP capabilities ----- */ |
| 721 | #define lmp_host_le_capable(dev) ((dev)->host_features[0] & LMP_HOST_LE) | 722 | #define lmp_host_le_capable(dev) ((dev)->host_features[0] & LMP_HOST_LE) |
| @@ -1019,6 +1020,7 @@ int mgmt_remote_name(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, | |||
| 1019 | int mgmt_start_discovery_failed(struct hci_dev *hdev, u8 status); | 1020 | int mgmt_start_discovery_failed(struct hci_dev *hdev, u8 status); |
| 1020 | int mgmt_stop_discovery_failed(struct hci_dev *hdev, u8 status); | 1021 | int mgmt_stop_discovery_failed(struct hci_dev *hdev, u8 status); |
| 1021 | int mgmt_discovering(struct hci_dev *hdev, u8 discovering); | 1022 | int mgmt_discovering(struct hci_dev *hdev, u8 discovering); |
| 1023 | int mgmt_interleaved_discovery(struct hci_dev *hdev); | ||
| 1022 | int mgmt_device_blocked(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type); | 1024 | int mgmt_device_blocked(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type); |
| 1023 | int mgmt_device_unblocked(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type); | 1025 | int mgmt_device_unblocked(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type); |
| 1024 | 1026 | ||
