Skip to content

Commit cfbfeee

Browse files
committed
Bluetooth: hci_sync: Ignore errors from HCI_OP_REMOTE_NAME_REQ_CANCEL
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: bluez/bluez#575 Fixes: d0b1370 ("Bluetooth: hci_sync: Rework init stages") Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 0023d34 commit cfbfeee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

net/bluetooth/hci_sync.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5380,7 +5380,10 @@ int hci_stop_discovery_sync(struct hci_dev *hdev)
53805380
if (!e)
53815381
return 0;
53825382

5383-
return hci_remote_name_cancel_sync(hdev, &e->data.bdaddr);
5383+
/* Ignore cancel errors since it should interfere with stopping
5384+
* of the discovery.
5385+
*/
5386+
hci_remote_name_cancel_sync(hdev, &e->data.bdaddr);
53845387
}
53855388

53865389
return 0;

0 commit comments

Comments
 (0)