]> git.baikalelectronics.ru Git - kernel.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)
commitfe25a20ff589152e6a4991bd86e747fa3a87fef9
tree44303e91b7ebbc73ebf8928a5b8fdf5b3e8597e5
parent1a7d8fb7f19c943a056e61ac164d6560d9705c5b
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