Re: [PATCH 2/4] Bluetooth: btbcm: clear vendor bits in LE advertising report types
From: André Eikmeyer
Date: Wed Nov 04 2026 - 11:02:47 EST
On Wed, 4 Nov 2026 10:24:47 -0500
Luiz Augusto von Dentz <luiz.dentz@xxxxxxxxx> wrote:
> I don't think I agree with this being cleaner then doing at
> hci_event.though; not only is it more code but it also walks the
> packet which is inefficient and may have security implications as
> well.
You are right, the driver should not parse the event a second time.
What I would like to keep is limiting the mask to the controllers that
set these bits, as hci_bcm4377 already does with
HCI_QUIRK_FIXUP_LE_EXT_ADV_REPORT_PHY:
- add HCI_QUIRK_FIXUP_LE_ADV_REPORT_TYPE
- set it in hci_bcm on Apple machines and in hci_bcm4377
- test the quirk in hci_le_adv_report_evt() instead of the
manufacturer, keeping the mask from 88397423671f
That drops patch 2 and replaces the revert in patch 3. Would that work
for you? Then I would send a v2 along these lines, with patch 1 and 4
unchanged.
Thanks,
Andre