I would like to make a Bluetooth driver for IW416 chipset on i.MX8M SoC.
I read a NXP document (11.1 Connectivity for Bluetooth wireless technology and Wi-Fi) and a knowledge base then I could use Bluetooth function now.
However, I didn't fully understand how to setup Bluetooth HCI.
Please tell me what each command does.
# For PCIe8997/SDIO8997/SDIO8987 and SDIO IW41
hciattach <device> any 115200 flow
hciconfig hci0 up
hcitool -i hci0 cmd 0x3f 0x0009 0xc0 0xc6 0x2d 0x00
killall hciattach
hciattach <device> any -s 3000000 3000000 flow
hciconfig hci0 up
I wonder why it needs to execute twice "hciattach" and twice "hciconfig hci0 up".
These details are not written in any documentation.
Best Regards,
tanoue.