Bluetooth: bpa10x: Use separate h4_recv_buf helper
Marcel Holtmann
maintainerPATCH v2 2/3 Bluetooth: bpa10x: Use separate h4_recv_buf helper
When adding the alignment and padding support for H:4 packet processing for the Nokia driver, it broke the h4_recv_buf usage within bpa10x driver. To fix this use a separate helper function and placing it into a dedicated h4_recv.h header file.
Signed-off-by Marcel Holtmann <[email protected]>
--- drivers/bluetooth/Kconfig | 3 +- drivers/bluetooth/bpa10x.c | 2 +- drivers/bluetooth/h4_recv.h | 160 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 162 insertions(+), 3 deletions(-) create mode 100644 drivers/bluetooth/h4_recv.h
drivers/bluetooth/Kconfig +1 -2
@@ -243,8 +243,7 @@ config BT_HCIBCM203X config BT_HCIBPA10X tristate "HCI BPA10x USB driver" - depends on USB && BT_HCIUART - select BT_HCIUART_H4 + depends on USB help Bluetooth HCI BPA10x USB driver. This driver provides support for the Digianswer BPA 100/105 Bluetooth
drivers/bluetooth/bpa10x.c +1 -1
@@ -35,7 +35,7 @@#include <net/bluetooth/bluetooth.h> #include <net/bluetooth/hci_core.h> -#include "hci_uart.h" +#include "h4_recv.h" #define VERSION "0.11"
drivers/bluetooth/h4_recv.h new file +160 -0
160 lines not on this page · raw message
Signature · 1 line
2.14.3