Get the definitions of UART IOCTL values from common header file
Get the definitions of UART IOCTL values from the common header file
instead of hard coding them.
Change-Id: I7a2f3cbd69de2980c10b136cab24484e92db8056
diff --git a/libbt-vendor/Android.mk b/libbt-vendor/Android.mk
index f406aa0..3b1ac18 100644
--- a/libbt-vendor/Android.mk
+++ b/libbt-vendor/Android.mk
@@ -41,7 +41,8 @@
$(LOCAL_PATH)/include \
external/bluetooth/bluedroid/hci/include \
system/bt/hci/include \
- $(TARGET_OUT_HEADERS)/bt/hci_qcomm_init
+ $(TARGET_OUT_HEADERS)/bt/hci_qcomm_init \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
ifeq ($(BOARD_HAS_QCA_BT_AR3002), true)
LOCAL_C_FLAGS := \
diff --git a/libbt-vendor/include/hci_uart.h b/libbt-vendor/include/hci_uart.h
index b2fc577..21e9689 100644
--- a/libbt-vendor/include/hci_uart.h
+++ b/libbt-vendor/include/hci_uart.h
@@ -19,6 +19,8 @@
#ifndef HCI_UART_H
#define HCI_UART_H
+#include <asm-generic/ioctls.h>
+
/* Variables to identify the platform */
/*BT HS UART TTY DEVICE */
#define BT_HS_UART_DEVICE "/dev/ttyHS0"
@@ -90,9 +92,11 @@
#endif // (BT_WAKE_VIA_USERIAL_IOCTL==TRUE)
/* UART CLOCK IOCTLS*/
-#define USERIAL_OP_CLK_ON 0x5441
-#define USERIAL_OP_CLK_OFF 0x5442
-#define USERIAL_OP_CLK_STATE 0x5443
+/* UART CLOCK IOCTLS*/
+#define USERIAL_OP_CLK_ON TIOCPMGET /* PM get */
+#define USERIAL_OP_CLK_OFF TIOCPMPUT /* PM put */
+#define USERIAL_OP_CLK_STATE TIOCPMACT /* PM is active */
+
/******************************************************************************
** Type definitions
******************************************************************************/