summaryrefslogtreecommitdiffstats
path: root/btif/src/bluetooth.c
diff options
context:
space:
mode:
Diffstat (limited to 'btif/src/bluetooth.c')
-rw-r--r--btif/src/bluetooth.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/btif/src/bluetooth.c b/btif/src/bluetooth.c
index 79af4f304..f93a4f829 100644
--- a/btif/src/bluetooth.c
+++ b/btif/src/bluetooth.c
@@ -44,6 +44,9 @@
#include <hardware/bt_gatt.h>
#include <hardware/bt_rc.h>
#include <hardware/bt_sdp.h>
+#ifdef WIPOWER_SUPPORTED
+#include <hardware/wipower.h>
+#endif
#define LOG_NDDEBUG 0
#define LOG_TAG "bt_bluedroid"
@@ -106,6 +109,9 @@ extern btgatt_interface_t *btif_gatt_get_interface();
/* avrc target */
extern btrc_interface_t *btif_rc_get_interface();
/* avrc controller */
+#ifdef WIPOWER_SUPPORTED
+extern wipower_interface_t *get_wipower_interface();
+#endif
extern btrc_interface_t *btif_rc_ctrl_get_interface();
/*SDP search client*/
extern btsdp_interface_t *btif_sdp_get_interface();
@@ -368,6 +374,11 @@ static const void* get_profile_interface (const char *profile_id)
if (is_profile(profile_id, BT_PROFILE_AV_RC_ID))
return btif_rc_get_interface();
+#ifdef WIPOWER_SUPPORTED
+ if (is_profile(profile_id, WIPOWER_PROFILE_ID))
+ return get_wipower_interface();
+#endif
+
if (is_profile(profile_id, BT_PROFILE_AV_RC_CTRL_ID))
return btif_rc_ctrl_get_interface();