Bluetooth: hci_bcm: Enable parsing of LM_DIAG messages
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 7 Oct 2015 17:12:54 +0000 (19:12 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 8 Oct 2015 06:53:16 +0000 (09:53 +0300)
commit94c58132c062855df53db9a46fb8da0b878d69f0
treea241a978571b3796e30d679f62e791196cc41673
parente875ff84079b9e7d3ce24b97e3396230d41044d4
Bluetooth: hci_bcm: Enable parsing of LM_DIAG messages

The Broadcom UART based controllers can send LM_DIAG messages with the
identifier 0x07 inside the HCI stream. These messages are 63 octets in
size and have no variable payload or length indicator.

This patch adds correct parsing information for the h4_recv_buf handler
and in case these packets are received, they are forwarded to the
Bluetooth core via hci_recv_diag interface.

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