[Solved] hcitool Error: Set scan parameters failed: Operation not permitted

Set scan parameters failed: operation not allowed

The reason is that the function of hcitool tool is missing, and the lescan function needs to be supplemented

sudo apt-get install libcap2-bin
sudo setcap 'cap_net_raw,cap_net_admin+eip' `which hcitool`
getcap !$

Execute again at this time

hcitool -i hci1 lescan

It is found that it can be scanned normally

Read More: