]> www.infradead.org Git - nvme.git/commit
Bluetooth: hci_event: Fix setting DISCOVERY_FINDING for passive scanning
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 25 Jul 2024 22:28:08 +0000 (18:28 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 26 Jul 2024 14:57:09 +0000 (10:57 -0400)
commitdf3d6a3e01fd82cb74b6bb309f7be71e728a3448
tree163d3317361fb4f4650181e4f81a85862463c2b6
parent7a8c6fb21a7c913ddb99785b14914dab2f934fbd
Bluetooth: hci_event: Fix setting DISCOVERY_FINDING for passive scanning

DISCOVERY_FINDING shall only be set for active scanning as passive
scanning is not meant to generate MGMT Device Found events causing
discovering state to go out of sync since userspace would believe it
is discovering when in fact it is just passive scanning.

Cc: stable@vger.kernel.org
Link: https://bugzilla.kernel.org/show_bug.cgi?id=219088
Fixes: 2e2515c1ba38 ("Bluetooth: hci_event: Set DISCOVERY_FINDING on SCAN_ENABLED")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c