summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorMarcel Holtmann2013-10-16 09:16:48 +0200
committerJohan Hedberg2013-10-16 09:31:24 +0200
commitf14d8f643733a564b299ec24464ae23a0d7eb230 (patch)
tree9a69759ecb6cffe90fedf8b2a2ee4e49b94638b7 /include/net
parentBluetooth: Store scan response data in HCI device (diff)
downloadkernel-qcow2-linux-f14d8f643733a564b299ec24464ae23a0d7eb230.tar.gz
kernel-qcow2-linux-f14d8f643733a564b299ec24464ae23a0d7eb230.tar.xz
kernel-qcow2-linux-f14d8f643733a564b299ec24464ae23a0d7eb230.zip
Bluetooth: Set the scan response data when needed
On controller power on and when enabling LE functionality, make sure that also the scan response data is correctly set. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/hci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 8b8c3e2ddb06..aca8944b3e30 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -1094,6 +1094,12 @@ struct hci_cp_le_set_adv_data {
__u8 data[HCI_MAX_AD_LENGTH];
} __packed;
+#define HCI_OP_LE_SET_SCAN_RSP_DATA 0x2009
+struct hci_cp_le_set_scan_rsp_data {
+ __u8 length;
+ __u8 data[HCI_MAX_AD_LENGTH];
+} __packed;
+
#define HCI_OP_LE_SET_ADV_ENABLE 0x200a
#define LE_SCAN_PASSIVE 0x00