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

hcitool Error: Set scan parameters failed: Operation not allowed

The reason behind this is due to the missing function of the Hictool tool 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 the time

hcitool -i hci1 lescan

It is found that it can be scanned normally.

Ranjeet Singh Rawat
Ranjeet Singh Rawat

Leave a Reply

Your email address will not be published. Required fields are marked *