diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2024-03-28 17:40:53 -0400 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2024-05-14 10:51:04 -0400 |
commit | 2e2515c1ba384ae44f6bf13dd64b9a0a950798c4 (patch) | |
tree | 1b7084fe000bd00d07920b8f3755af0b01dc8ae9 /net/bluetooth/hci_event.c | |
parent | 7c2cc5b1db509fb6e4a20c182cfbaf94255e4a7c (diff) | |
download | linux-stable-2e2515c1ba384ae44f6bf13dd64b9a0a950798c4.tar.gz linux-stable-2e2515c1ba384ae44f6bf13dd64b9a0a950798c4.tar.bz2 linux-stable-2e2515c1ba384ae44f6bf13dd64b9a0a950798c4.zip |
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>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index d72d238c1656..71fedb2d4b48 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -1779,8 +1779,7 @@ static void le_set_scan_enable_complete(struct hci_dev *hdev, u8 enable) hci_dev_set_flag(hdev, HCI_LE_SCAN); if (hdev->le_scan_type == LE_SCAN_ACTIVE) clear_pending_adv_report(hdev); - if (hci_dev_test_flag(hdev, HCI_MESH)) - hci_discovery_set_state(hdev, DISCOVERY_FINDING); + hci_discovery_set_state(hdev, DISCOVERY_FINDING); break; case LE_SCAN_DISABLE: |