void hci_conn_params_clear_disabled(struct hci_dev *hdev);
void hci_conn_params_clear_enabled(struct hci_dev *hdev);
-struct hci_conn_params *hci_pend_le_conn_lookup(struct hci_dev *hdev,
- bdaddr_t *addr, u8 addr_type);
+struct hci_conn_params *hci_pend_le_action_lookup(struct list_head *list,
+ bdaddr_t *addr,
+ u8 addr_type);
void hci_update_background_scan(struct hci_dev *hdev);
}
/* This function requires the caller holds hdev->lock */
-struct hci_conn_params *hci_pend_le_conn_lookup(struct hci_dev *hdev,
- bdaddr_t *addr, u8 addr_type)
+struct hci_conn_params *hci_pend_le_action_lookup(struct list_head *list,
+ bdaddr_t *addr, u8 addr_type)
{
struct hci_conn_params *param;
if (!hci_is_identity_address(addr, addr_type))
return NULL;
- list_for_each_entry(param, &hdev->pend_le_conns, action) {
+ list_for_each_entry(param, list, action) {
if (bacmp(¶m->addr, addr) == 0 &&
param->addr_type == addr_type)
return param;
{
struct hci_conn *conn;
- if (!hci_pend_le_conn_lookup(hdev, addr, addr_type))
+ if (!hci_pend_le_action_lookup(&hdev->pend_le_conns, addr, addr_type))
return false;
conn = hci_connect_le(hdev, addr, addr_type, BT_SECURITY_LOW,