When calling Remove Device for an entry using HCI_AUTO_CONN_REPORT we
need to decrement the pend_le_reports value correspondingly. This patch
fixes one such missing action in the Remove Device command handler.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
goto unlock;
}
+ if (params->auto_connect == HCI_AUTO_CONN_REPORT)
+ hdev->pend_le_reports--;
+
hci_pend_le_conn_del(hdev, &cp->addr.bdaddr, addr_type);
list_del(¶ms->list);
kfree(params);