]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb: Implement driver internal packet reassembly
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 16 Sep 2014 06:00:29 +0000 (08:00 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 16 Sep 2014 18:33:15 +0000 (21:33 +0300)
commit37763e7882bf5ad5806f42923213a27b4eb0e82f
treef08012e456352004a88213bdb27b980afacc5d57
parent1725c86f4d5dd5fe1f7cc25bb9ee6e1c5aa728ee
Bluetooth: btusb: Implement driver internal packet reassembly

When receiving USB interrupt, bulk or isochronous packet, they normally
come in fragments. So far the driver just handed each fragment off to
the hci_recv_fragment function of the Bluetooth core. That function is
however so specific that is does not belong in the core. This patch
implements the same reassembly logic in the driver.

In addition this fixes a long standing bug where multiple complete
packets are received within a single USB packet.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/btusb.c