SUSHMITAH / btstack

Automatically exported from code.google.com/p/btstack
0 stars 0 forks source link

l2cap - "l2cap_send_internal, no credits" on SDP Browse #149

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When BTstack is browsed by a remote machine, it supplies it's SDP record. It 
also prints an error on the console
--
bulk in: len 28, data 29
l2cap_send_internal cid 64, no credits!
acl out: len 106, data 29
--

It looks like the flow control system is not giving a 'credit' 
(channel->packets_granted) when this channel is set up.
--
Breakpoint 1, l2cap_send_internal (local_cid=64, data=0x805bda0 "\a", len=98) 
at l2cap.c:228
228             log_err("l2cap_send_internal cid %u, no credits!\n", local_cid);
(gdb) bt
#0  l2cap_send_internal (local_cid=64, data=0x805bda0 "\a", len=98) at 
l2cap.c:228
#1  0x08056c57 in sdp_packet_handler (packet_type=6 '\006', channel=64, 
packet=0x805b948 "\006", 
    size=20) at sdp.c:530
#2  0x0805137e in l2cap_dispatch (channel=0x805db10, type=6 '\006', 
data=0x805b948 "\006", size=20)
    at l2cap.c:96
#3  0x08052dea in l2cap_acl_handler (packet=0x805b940 ") \030", size=28) at 
l2cap.c:816
#4  0x08052e35 in l2cap_packet_handler (packet_type=2 '\002', packet=0x805b940 
") \030", size=28)
    at l2cap.c:826
#5  0x0804dca8 in acl_handler (packet=0x805b940 ") \030", size=28) at hci.c:286
#6  0x0804e597 in packet_handler (packet_type=2 '\002', packet=0x805b940 ") 
\030", size=28)
    at hci.c:521
#7  0x08050839 in usb_process_ts (timer=0x805bd44) at hci_transport_usb.c:267
#8  0x0804a368 in posix_execute () at run_loop_posix.c:181
#9  0x08049db1 in run_loop_execute () at run_loop.c:111
#10 0x0804d470 in main (argc=1, argv=0xbffff744) at daemon.c:572
(gdb) print *channel
$1 = {item = {next = 0x0, user_data = 0x0}, state = 
L2CAP_STATE_WAIT_CONFIG_REQ_RSP, 
  address = "\000\002r\002\235?", handle = 41, sig_id = 1 '\001', local_cid = 64, remote_cid = 64, 
  local_mtu = 192, remote_mtu = 672, psm = 1, packets_granted = 0 '\000', 
  packets_outgoing = 2 '\002', connection = 0x0, packet_handler = 0x8056b24 <sdp_packet_handler>}
--

Original issue reported on code.google.com by mungew...@gmail.com on 3 May 2011 at 3:23

GoogleCodeExporter commented 8 years ago
should be fixed since the buffer management redesign

Original comment by matthias.ringwald@gmail.com on 14 Aug 2011 at 5:14