Bluetooth: Fix issue with HCI_QUIRK_FIXUP_INQUIRY_MODE and event mask
Subsystems (2)
Marcel Holtmann
maintainerPATCH 1/1 Bluetooth: Fix issue with HCI_QUIRK_FIXUP_INQUIRY_MODE and event mask
When setting the event mask, the HCI_QUIRK_FIXUP_INQUIRY_MODE quirk is required to be checked so that the Inquiry Result with RSSI event gets actually enabled.
Signed-off-by Marcel Holtmann <[email protected]>
--- net/bluetooth/hci_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
net/bluetooth/hci_core.c +2 -1
@@ -555,7 +555,8 @@ static void hci_setup_event_mask(struct hci_request *req) } } -if (lmp_inq_rssi_capable (hdev)) +if (lmp_inq_rssi_capable (hdev) || +test_bit (HCI_QUIRK_FIXUP_INQUIRY_MODE , &hdev->quirks)) events[4 ] |=0x02 ;/* Inquiry Result with RSSI */ if (lmp_ext_feat_capable (hdev))
Signature · 1 line
2.4.3
Johan Hedberg
AppliedHi Marcel,
Quoted 8 lines · Marcel Holtmann
When setting the event mask, the
HCI_QUIRK_FIXUP_INQUIRY_MODEquirk is required to be checked so that the Inquiry Result with RSSI event gets actually enabled.Signed-off-by Marcel Holtmann <[email protected]>--- net/bluetooth/hci_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied to bluetooth-next. Thanks.
Johan