Bluetooth: Add support for storing LE white list entries
Subsystems (2)
Marcel Holtmann
maintainerPATCH 3/4 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 <[email protected]>
--- include/net/bluetooth/hci_core.h | 7 ++++ net/bluetooth/hci_core.c | 90 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+)
include/net/bluetooth/hci_core.h +7 -0
@@ -284,6 +284,7 @@ struct hci_dev {struct list_head long_term_keys;struct list_head identity_resolving_keys;struct list_head remote_oob_data; +struct list_head le_white_list;struct list_head le_conn_params;struct list_head pend_le_conns;
@@ -799,6 +800,12 @@ struct bdaddr_list *hci_blacklist_lookup(struct hci_dev *hdev,int hci_blacklist_add (struct hci_dev *hdev,bdaddr_t *bdaddr,u8 type);int hci_blacklist_del (struct hci_dev *hdev,bdaddr_t *bdaddr,u8 type); +struct bdaddr_list *hci_white_list_lookup (struct hci_dev *hdev, +bdaddr_t *bdaddr,u8 type); +void hci_white_list_clear (struct hci_dev *hdev); +int hci_white_list_add (struct hci_dev *hdev,bdaddr_t *bdaddr,u8 type); +int hci_white_list_del (struct hci_dev *hdev,bdaddr_t *bdaddr,u8 type); +struct hci_conn_params *hci_conn_params_lookup (struct hci_dev *hdev,bdaddr_t *addr,u8 addr_type); int hci_conn_params_add(struct hci_dev *hdev, bdaddr_t *addr, u8 addr_type,
net/bluetooth/hci_core.c +90 -0
120 lines not on this page · raw message
Signature · 1 line
1.8.5.3