]> 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)
commitcc08a017fb83486e4cb3e16045ad8ad2dcecb2f7
treeaec456ce4793e2fe12471fcaf2cd531588a7ae15
parente472a4d2fdd88ad8ac44471c49d685cf7845a76c
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