mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-07 09:55:19 +02:00
Bluetooth: hci_sync: Ignore errors from HCI_OP_REMOTE_NAME_REQ_CANCEL
[ Upstream commitcfbfeee615
] This ignores errors from HCI_OP_REMOTE_NAME_REQ_CANCEL since it shouldn't interfere with the stopping of discovery and in certain conditions it seems to be failing. Link: https://github.com/bluez/bluez/issues/575 Fixes:d0b137062b
("Bluetooth: hci_sync: Rework init stages") Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ea8d90a5b0
commit
7eebbdde4b
|
@ -5391,7 +5391,10 @@ int hci_stop_discovery_sync(struct hci_dev *hdev)
|
|||
if (!e)
|
||||
return 0;
|
||||
|
||||
return hci_remote_name_cancel_sync(hdev, &e->data.bdaddr);
|
||||
/* Ignore cancel errors since it should interfere with stopping
|
||||
* of the discovery.
|
||||
*/
|
||||
hci_remote_name_cancel_sync(hdev, &e->data.bdaddr);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user