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)
commite54991677e1c8060ba5642472cbd9a0954298d01
treeaec456ce4793e2fe12471fcaf2cd531588a7ae15
parent4e1795de10903ae561872c54a72fa1bcf78f49cd
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