It looks like that function is pretty close to the kernel so this is probably due to some kernel change.
Can you please try some older kernels and see if you can find any without the bug? https://kernel.ubuntu.com/~kernel-ppa/mainline/?C=M;O=D ** Tags added: focal ** Also affects: linux (Ubuntu) Importance: Undecided Status: New ** Summary changed: - Ubuntu 20.04 (focal): hcitool lescan broken + hcitool lescan says 'Set scan parameters failed: Input/output error' -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1870837 Title: hcitool lescan says 'Set scan parameters failed: Input/output error' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1870837/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs