]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0a1c40a461d2ee8b4f43f263368f30f914db54e5
treea241a978571b3796e30d679f62e791196cc41673
parentd61ac2e6a6e84804edd3a95d2220fddbbe0315be
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