|
@@ -2822,10 +2822,6 @@ struct hci_conn_params *hci_conn_params_lookup(struct hci_dev *hdev,
|
|
{
|
|
{
|
|
struct hci_conn_params *params;
|
|
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) {
|
|
list_for_each_entry(params, &hdev->le_conn_params, list) {
|
|
if (bacmp(¶ms->addr, addr) == 0 &&
|
|
if (bacmp(¶ms->addr, addr) == 0 &&
|
|
params->addr_type == addr_type) {
|
|
params->addr_type == addr_type) {
|
|
@@ -2842,10 +2838,6 @@ struct hci_conn_params *hci_pend_le_action_lookup(struct list_head *list,
|
|
{
|
|
{
|
|
struct hci_conn_params *param;
|
|
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, list, action) {
|
|
list_for_each_entry(param, list, action) {
|
|
if (bacmp(¶m->addr, addr) == 0 &&
|
|
if (bacmp(¶m->addr, addr) == 0 &&
|
|
param->addr_type == addr_type)
|
|
param->addr_type == addr_type)
|
|
@@ -2861,9 +2853,6 @@ struct hci_conn_params *hci_conn_params_add(struct hci_dev *hdev,
|
|
{
|
|
{
|
|
struct hci_conn_params *params;
|
|
struct hci_conn_params *params;
|
|
|
|
|
|
- if (!hci_is_identity_address(addr, addr_type))
|
|
|
|
- return NULL;
|
|
|
|
-
|
|
|
|
params = hci_conn_params_lookup(hdev, addr, addr_type);
|
|
params = hci_conn_params_lookup(hdev, addr, addr_type);
|
|
if (params)
|
|
if (params)
|
|
return params;
|
|
return params;
|