]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_uart: Fix zero len data packet reception issue
authorLoic Poulain <loic.poulain@intel.com>
Mon, 24 Aug 2015 16:57:57 +0000 (18:57 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 28 Aug 2015 19:00:37 +0000 (21:00 +0200)
commit93da0d87665761ec14f9987b0e4db42fb7485f87
treeaec456ce4793e2fe12471fcaf2cd531588a7ae15
parentc9f65ec3aeda9ef2db00040eaa43f2fdb2917778
Bluetooth: hci_uart: Fix zero len data packet reception issue

Packets with a variable length value equal to zero were not received.

Since no more data expected (and input buffer entirely consumed), we
need to complete/forward the packet immediately instead of waiting for
more data.

Signed-off-by: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_h4.c