From: Nolen Johnson <johnsonnolen@gmail.com>
Date: Fri, 30 Dec 2022 19:31:02 +0000 (-0500)
Subject: libbt-vendor: Include hci_layer_legacy header instead
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=99d995b617ee631a320270466e8b3e0b07ea7900;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_realtek.git

libbt-vendor: Include hci_layer_legacy header instead

* https://review.lineageos.org/c/LineageOS/android_packages_modules_Bluetooth/+/345888

Change-Id: Ia26f16e340f505e7776aef2b3b8388afd38faa37
---

diff --git a/rtkbt/code/libbt-vendor/src/hci_h5.c b/rtkbt/code/libbt-vendor/src/hci_h5.c
index 938088a..fc59163 100755
--- a/rtkbt/code/libbt-vendor/src/hci_h5.c
+++ b/rtkbt/code/libbt-vendor/src/hci_h5.c
@@ -48,7 +48,7 @@
 #include <arpa/inet.h>
 #include <string.h>
 #include <linux/wait.h>
-#include <hci_layer.h>
+#include <hci_layer_legacy.h>
 
 #include "hci_h5_int.h"
 #include "bt_skbuff.h"
diff --git a/rtkbt/code/libbt-vendor/src/rtk_btsnoop_net.c b/rtkbt/code/libbt-vendor/src/rtk_btsnoop_net.c
index 9605334..27edcd7 100755
--- a/rtkbt/code/libbt-vendor/src/rtk_btsnoop_net.c
+++ b/rtkbt/code/libbt-vendor/src/rtk_btsnoop_net.c
@@ -18,7 +18,7 @@
 #define LOG_TAG "rtk_btsnoop_net"
 #include "rtk_btsnoop_net.h"
 #include <unistd.h>
-#include <hci_layer.h>
+#include <hci_layer_legacy.h>
 
 #define RTK_NO_INTR(fn)  do {} while ((fn) == -1 && errno == EINTR)
 
diff --git a/rtkbt/code/libbt-vendor/src/userial_vendor.c b/rtkbt/code/libbt-vendor/src/userial_vendor.c
index 0909ef6..16cbe99 100755
--- a/rtkbt/code/libbt-vendor/src/userial_vendor.c
+++ b/rtkbt/code/libbt-vendor/src/userial_vendor.c
@@ -36,7 +36,7 @@
 #include "userial_vendor.h"
 #include "rtk_socket.h"
 #include <cutils/sockets.h>
-#include <hci_layer.h>
+#include <hci_layer_legacy.h>
 
 
 #ifdef CONFIG_SCO_OVER_HCI