]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Check inquiry status before sending one
authorArchie Pusaka <apusaka@chromium.org>
Thu, 1 Apr 2021 03:11:33 +0000 (11:11 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 2 Apr 2021 09:06:17 +0000 (11:06 +0200)
commit0a9e717e335b03fe9afe50f807ebebc4a2f10aff
tree8aa2210b419533a72f99a214c9338ca794864e22
parent2ee6baa817fcffe472e938476d2c562f3cb0f5ce
Bluetooth: Check inquiry status before sending one

There is a possibility where HCI_INQUIRY flag is set but we still
send HCI_OP_INQUIRY anyway.

Such a case can be reproduced by connecting to an LE device while
active scanning. When the device is discovered, we initiate a
connection, stop LE Scan, and send Discovery MGMT with status
disabled, but we don't cancel the inquiry.

Signed-off-by: Archie Pusaka <apusaka@chromium.org>
Reviewed-by: Sonny Sasaka <sonnysasaka@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_request.c