Hi Vinicius,
if (hci_send_cmd(sock, OGF_HOST_CTL, OCF_WRITE_INQUIRY_MODE,
WRITE_INQUIRY_MODE_RP_SIZE,&cp)< 0) {
Taking a look at your code, a few things look out of place: you are
using cp uninitialized, it is expecting a write_inquiry_mode_cp, not a
inquiry_cp and the plen parameter seems wrong.
Silly me! How could I have missed this?
Well, now I use write_inquiry_mode_cp with a mode set to 0x01 and the
proper plen.
Everything works as expected!
Thank you very much for the quick help!
Ulrich
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html