]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Do not cancel advertising when starting a scan
authorDmitry Grinberg <dmitrygr@google.com>
Tue, 17 Mar 2020 05:40:27 +0000 (22:40 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 18 Mar 2020 11:25:03 +0000 (12:25 +0100)
commitb4964d0c66f9e2fcd60c463d4840423099b94468
treebb495d32e62e899b22099a52334e25d04a398c37
parent08b3e09c97fd2e32faaa04220e9c3b61ab462980
Bluetooth: Do not cancel advertising when starting a scan

BlueZ cancels adv when starting a scan, but does not cancel a scan when
starting to adv. Neither is required, so this brings both to a
consistent state (of not affecting each other). Some very rare (I've
never seen one) BT 4.0 chips will fail to do both at once. Even this is
ok since the command that will fail will be the second one, and thus the
common sense logic of first-come-first-served is preserved for BLE
requests.

Signed-off-by: Dmitry Grinberg <dmitrygr@google.com>
Signed-off-by: Manish Mandlik <mmandlik@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_request.c