Export to GitHub

btstack - issue #150

l2cap: hci_number_completed_packet but no outgoing packet in records


Posted on May 3, 2011 by Quick Wombat

When BTstack is SDP browsed by a remote machine, it provides a SDP record. In the process it reports

hci_number_completed_packet but no outgoing packet in records

The error means that the flow control system saw a 'ack' when it didn't know a packet had been sent out.

It looks like this happens with: 1). Packets without a recognised handle (ie, handle is not in 'l2cap_channels' linked list) - adding handle check fixes that. 2). 'Signaling packets' - I guess the solution is to detect whether link is established (ie. handle is in 'l2cap_channels' linked lis) and then start counting these packets as well. This seems to be done for normal packets, so code could be duplicated/re-used.

Simon

Comment #1

Posted on May 3, 2011 by Quick Wombat

Have a solution, will post patch later...

Comment #2

Posted on May 3, 2011 by Swift Ox

very good :)

Comment #3

Posted on May 4, 2011 by Quick Wombat

yes was working on this last night when SO told me that it was time too stop.

Patch attached. Simon

Attachments

Comment #4

Posted on Jul 25, 2011 by Swift Ox

ups. forgot about that one, but I've basically rewritten the whole flowcontrol. should be fine now. :)

Status: Fixed

Labels:
Type-Defect Priority-Medium