Bug 248015 - Bluetooth HCI socket cannot send ACL messages
Summary: Bluetooth HCI socket cannot send ACL messages
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-wireless (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-16 14:18 UTC by Greg V
Modified: 2020-07-23 14:41 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg V 2020-07-16 14:18:28 UTC
Trying to send ACL/L2CAP payloads over a raw HCI socket fails with errno 45, I assume because of this check:

https://github.com/freebsd/freebsd/blob/c470df57b17914aedf532bebf57b4e6d6ba83b85/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c#L1609-L1612

What is the purpose of this check? I'm pretty sure on Linux, you can talk ACL over a raw HCI socket..
Comment 1 Greg V 2020-07-16 17:36:02 UTC
My solution: https://reviews.freebsd.org/D25690