]> asedeno.scripts.mit.edu Git - linux.git/commit
Bluetooth: Fix not initializing L2CAP tx_credits
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 14 Mar 2019 13:43:37 +0000 (15:43 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 23 Apr 2019 16:09:07 +0000 (18:09 +0200)
commitba8f5289f706aed94cc95b15cc5b89e22062f61f
tree44303e91b7ebbc73ebf8928a5b8fdf5b3e8597e5
parent75c98a97958158154a61329992d70f08669b2b7a
Bluetooth: Fix not initializing L2CAP tx_credits

l2cap_le_flowctl_init was reseting the tx_credits which works only for
outgoing connection since that set the tx_credits on the response, for
incoming connections that was not the case which leaves the channel
without any credits causing it to be suspended.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: stable@vger.kernel.org # 4.20+
net/bluetooth/l2cap_core.c