hikey: Fix wpan warning including BOTHER redefinition
Test: Manual
Bug: 32713438
Change-Id: Ie6518fbb5e7594fa2d08078375ff7bcf92533a16
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
diff --git a/wpan/bluedroid_wilink/libbt-vendor-ti.c b/wpan/bluedroid_wilink/libbt-vendor-ti.c
index e05c154..46705bd 100644
--- a/wpan/bluedroid_wilink/libbt-vendor-ti.c
+++ b/wpan/bluedroid_wilink/libbt-vendor-ti.c
@@ -41,12 +41,13 @@
* Returns None
*
* *******************************************************************************/
-void hw_config_cback(HC_BT_HDR *p_evt_buf)
+void hw_config_cback(HC_BT_HDR * __unused p_evt_buf)
{
ALOGV("hw_config_cback");
}
-int ti_init(const bt_vendor_callbacks_t* p_cb, unsigned char *local_bdaddr) {
+int ti_init(const bt_vendor_callbacks_t* p_cb, unsigned char * __unused local_bdaddr)
+{
ALOGV("vendor Init");
if (p_cb == NULL)
@@ -59,14 +60,18 @@
return 0;
}
-void ti_cleanup(void) {
+
+void ti_cleanup(void)
+{
ALOGV("vendor cleanup");
bt_vendor_cbacks = NULL;
}
-int ti_op(bt_vendor_opcode_t opcode, void **param) {
+
+int ti_op(bt_vendor_opcode_t opcode, void *param)
+{
int fd;
- int *fd_array = (int (*)[]) param;
+ int *fd_array = (int *)param;
ALOGV("vendor op - %d", opcode);
switch(opcode)
@@ -99,6 +104,7 @@
return 0;
}
+
const bt_vendor_interface_t BLUETOOTH_VENDOR_LIB_INTERFACE = {
.init = ti_init,
.op = ti_op,