[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] HCI ACL packet


In hci_receive_data(), when the state is
I add the the following code to clear the previous
uncompleted ACL frame.
Is this correct? Thanks so much.

if (pb_flag == L2CAP_FRAME_START) {
	D_REC(__FUNCTION__ ": New frame\n");
	/* clear uncompleted frame */
	in_buf = get_inbuffer(hci_hdl);
	if (in_buf) {
	in_buf = get_free_inbuffer();
	if (in_buf) {
	    in_buf->nbr_of_hci_pkt = 1;
	    in_buf->hci_hdl = hci_hdl;
} else ...    
Best wishes

Do You Yahoo!?
nOKO @xxxxxxx.tw">http://mail.yahoo.com.tw
Get your free @xxxxxxx.tw">http://mail.yahoo.com.tw
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com