Bug 248015

Summary: Bluetooth HCI socket cannot send ACL messages
Product: Base System Reporter: Val Packett <val>
Component: kernAssignee: freebsd-wireless (Nobody) <wireless>
Status: New ---    
Severity: Affects Only Me CC: emaste, emax, takawata
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248024

Description Val Packett 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 Val Packett 2020-07-16 17:36:02 UTC
My solution: https://reviews.freebsd.org/D25690