Bluetooth: hci_event: Set DISCOVERY_FINDING on SCAN_ENABLED
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 28 Mar 2024 21:40:53 +0000 (17:40 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 14 May 2024 14:51:04 +0000 (10:51 -0400)
commit2e2515c1ba384ae44f6bf13dd64b9a0a950798c4
tree1b7084fe000bd00d07920b8f3755af0b01dc8ae9
parent7c2cc5b1db509fb6e4a20c182cfbaf94255e4a7c
Bluetooth: hci_event: Set DISCOVERY_FINDING on SCAN_ENABLED

This makes sure that discovery state is properly synchronized otherwise
reports may not generate MGMT DeviceFound events as it would be assumed
that it was not initiated by a discovery session.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c