{
struct hci_conn_params *params;
+ /* The conn params list only contains identity addresses */
+ if (!hci_is_identity_address(addr, addr_type))
+ return NULL;
+
list_for_each_entry(params, &hdev->le_conn_params, list) {
if (bacmp(¶ms->addr, addr) == 0 &&
params->addr_type == addr_type) {
{
struct hci_conn_params *param;
+ /* The list only contains identity addresses */
+ if (!hci_is_identity_address(addr, addr_type))
+ return NULL;
+
list_for_each_entry(param, &hdev->pend_le_conns, pend_le_conn) {
if (bacmp(¶m->addr, addr) == 0 &&
param->addr_type == addr_type)
if (type == LE_ADV_DIRECT_IND)
return;
- /* The conn params list only contains identity addresses */
- if (!hci_is_identity_address(bdaddr, bdaddr_type))
- return;
-
param = hci_conn_params_lookup(hdev, bdaddr, bdaddr_type);
if (!param || param->auto_connect != HCI_AUTO_CONN_REPORT)
return;