I would like to know the details about the third parameter of the hci_write_local_name function. The first one is thesocket descriptor. Second the local name. And third one is a number which i thought the length of the second parameter. But if i use strlen of the second parameter the function fails. In hciconfig.c the value of third parameter for the same function is 2000. I tested with 100 as value. That worked. Can anybody say what exactly the third parameter implies?