noble / bleno

A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals
MIT License
2.13k stars 451 forks source link

Linux 6.9 support broken #482

Open mayfield opened 5 months ago

mayfield commented 5 months ago

Hi, on linux 6.9 there are some changes to validating the size arg of setsockopt for the HCI setFilter call that break bleno.

Background: https://github.com/abandonware/node-bluetooth-hci-socket/issues/60#issuecomment-2197545245

The fix could be as simple as changing hci.js:setSocketfilter() to alloc 16 bytes instead of 14 but it might be prudent to see what the devs of node-bluetooth-hci-socket think first. I'm just a reporter and not a BLE expert.