diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-19 13:57:49 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-10-24 09:17:17 -0400 |
commit | 8fa19098ebc700f14b0f8d0fb957e7748e14c44b (patch) | |
tree | 488d94f7b05d394b5b29a0a9adae0cf67bbb4cf0 /include | |
parent | e36b04c805e452689d468f9783e5dffa61e38be7 (diff) |
Bluetooth: Read adversiting channel TX power during init sequence
This patch adds the reading of the LE advertising channel TX power to
the HCI init sequence of LE-capable controllers. This data will be used
e.g. for inclusion in the advertising data packets when advertising is
enabled.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bluetooth/hci.h | 6 | ||||
-rw-r--r-- | include/net/bluetooth/hci_core.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 88cbbda61027..348f4bfeaadb 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
@@ -932,6 +932,12 @@ struct hci_rp_le_read_buffer_size { | |||
932 | __u8 le_max_pkt; | 932 | __u8 le_max_pkt; |
933 | } __packed; | 933 | } __packed; |
934 | 934 | ||
935 | #define HCI_OP_LE_READ_ADV_TX_POWER 0x2007 | ||
936 | struct hci_rp_le_read_adv_tx_power { | ||
937 | __u8 status; | ||
938 | __s8 tx_power; | ||
939 | } __packed; | ||
940 | |||
935 | #define HCI_OP_LE_SET_SCAN_PARAM 0x200b | 941 | #define HCI_OP_LE_SET_SCAN_PARAM 0x200b |
936 | struct hci_cp_le_set_scan_param { | 942 | struct hci_cp_le_set_scan_param { |
937 | __u8 type; | 943 | __u8 type; |
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 00abc5246cbf..5ab80b7e8369 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -278,6 +278,8 @@ struct hci_dev { | |||
278 | struct work_struct le_scan; | 278 | struct work_struct le_scan; |
279 | struct le_scan_params le_scan_params; | 279 | struct le_scan_params le_scan_params; |
280 | 280 | ||
281 | __s8 adv_tx_power; | ||
282 | |||
281 | int (*open)(struct hci_dev *hdev); | 283 | int (*open)(struct hci_dev *hdev); |
282 | int (*close)(struct hci_dev *hdev); | 284 | int (*close)(struct hci_dev *hdev); |
283 | int (*flush)(struct hci_dev *hdev); | 285 | int (*flush)(struct hci_dev *hdev); |