OSDN Git Service

LE: Release transmit buffer credits
authorAndre Eisenbach <andre@broadcom.com>
Tue, 25 Jun 2013 23:44:56 +0000 (16:44 -0700)
committerMatthew Xie <mattx@google.com>
Thu, 27 Jun 2013 17:46:45 +0000 (10:46 -0700)
commit98657a365c7230b84a005c63ce5bcf036d69f6eb
tree2640c74d21cac6b2463c8a4af01af1948e35e906
parentec7e2c8e06396101c6b26187995db7c105ed3c3f
LE: Release transmit buffer credits

When an ACL link goes down, some controllers do not send a "number of
completed packets" update for the last ACL packets sent from the host to
the controller. This could result in incorrect L2CAP transmit window
calculations and no transmit credit to be available to send data to the
controller.
This patch restores transmit buffer creedits regardless of the
controller behaviour.
bug 9474159

Change-Id: I2540131034271a0269fa50698f370bceb7747e2d
stack/l2cap/l2c_utils.c