Re: [PATCH bluez RFC 2/3] doc: hci-protocol: Add sock option BT_RCV_VENDOR_PKT for HCI_CHANNEL_USER
Luiz Augusto von Dentz <[email protected]>
| Newsgroups | org.kernel.vger.linux-bluetooth,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CABBYNZK0RSZ6xOgkx=wcme9kUWXFHydAvHR+EXwkp4eJwp-QKw@mail.gmail.com> |
Hi, On Mon, Jul 20, 2026 at 1:41 AM Zijun Hu <[email protected]> wrote: > > BT_RCV_VENDOR_PKT was introduced to support vendor HCI frame. > --- > doc/hci-protocol.rst | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/doc/hci-protocol.rst b/doc/hci-protocol.rst > index db10b35df736..91cbc5b65a78 100644 > --- a/doc/hci-protocol.rst > +++ b/doc/hci-protocol.rst > @@ -136,6 +136,24 @@ Example: > len = sizeof(mtu); > err = getsockopt(sock, SOL_BLUETOOTH, BT_RCVMTU, &mtu, &len); > > +BT_RCV_VENDOR_PKT (since Linux 7.3) > +----------------------------------- > + > +Enable receiving vendor HCI frames, requires hci_channel to be set to > +HCI_CHANNEL_USER. > + > +Default is disabled. > + > +Example: > + > +.. code-block:: > + > + int enable = 1; > + int err; > + > + err = setsockopt(fd, SOL_BLUETOOTH, BT_RCV_VENDOR_PKT, &enable, > + sizeof(enable)); > + I don't think we have any socket option with this name, besides this should really go as an HCI packet with an H4 header set accordingly. > RESOURCES > ========= > > > -- > 2.34.1 > -- Luiz Augusto von Dentz