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)
commitba7c1b47c11ba78e54f979aae9df1149815c23ad
treebb495d32e62e899b22099a52334e25d04a398c37
parent905d7b13112dcfdba1983c014f3bf30dc3d4f179
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