how event packet header is getiing in hci_send_req api implementation?
问题 Hi I am going through hci_send_req implementation in hci.c file. in this function after sending hci command to controller . Controller send event packet. After reading event packet in buffer by read(dd, buf, sizeof(buf)) (dd is hci socket descriptor) , now we need event packet header and to get event packet header, buf is sifted by 1 byte. why?? hdr = (void *) (buf + 1); (line number 1049 of hci.c) Please let me know about this. Thanks. 回答1: HCI Event Packets: the Host Controller notifies the