diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2014-02-27 23:37:30 -0500 |
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-02-28 02:31:20 -0500 |
| commit | d2ab0ac18df8735fb1431e63446e803dcd2e7326 (patch) | |
| tree | d754023c112a6b53335fc0a9243e5fcae4a51a5f /include/net/bluetooth | |
| parent | 747d3f030190e58373849839c7757d3d58208b03 (diff) | |
Bluetooth: Add support for storing LE white list entries
The current LE white list entries require storing in the HCI controller
structure. So provide a storage and access functions for it. In addition
export the current list via debugfs.
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 9493da8f7d83..571168811ecd 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
| @@ -284,6 +284,7 @@ struct hci_dev { | |||
| 284 | struct list_head long_term_keys; | 284 | struct list_head long_term_keys; |
| 285 | struct list_head identity_resolving_keys; | 285 | struct list_head identity_resolving_keys; |
| 286 | struct list_head remote_oob_data; | 286 | struct list_head remote_oob_data; |
| 287 | struct list_head le_white_list; | ||
| 287 | struct list_head le_conn_params; | 288 | struct list_head le_conn_params; |
| 288 | struct list_head pend_le_conns; | 289 | struct list_head pend_le_conns; |
| 289 | 290 | ||
| @@ -799,6 +800,12 @@ struct bdaddr_list *hci_blacklist_lookup(struct hci_dev *hdev, | |||
| 799 | int hci_blacklist_add(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type); | 800 | int hci_blacklist_add(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type); |
| 800 | int hci_blacklist_del(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type); | 801 | int hci_blacklist_del(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type); |
| 801 | 802 | ||
| 803 | struct bdaddr_list *hci_white_list_lookup(struct hci_dev *hdev, | ||
| 804 | bdaddr_t *bdaddr, u8 type); | ||
| 805 | void hci_white_list_clear(struct hci_dev *hdev); | ||
| 806 | int hci_white_list_add(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type); | ||
| 807 | int hci_white_list_del(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type); | ||
| 808 | |||
| 802 | struct hci_conn_params *hci_conn_params_lookup(struct hci_dev *hdev, | 809 | struct hci_conn_params *hci_conn_params_lookup(struct hci_dev *hdev, |
| 803 | bdaddr_t *addr, u8 addr_type); | 810 | bdaddr_t *addr, u8 addr_type); |
| 804 | int hci_conn_params_add(struct hci_dev *hdev, bdaddr_t *addr, u8 addr_type, | 811 | int hci_conn_params_add(struct hci_dev *hdev, bdaddr_t *addr, u8 addr_type, |
