From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> --- android/client/if-hf.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/android/client/if-hf.c b/android/client/if-hf.c index 269e029..b0dd13a 100644 --- a/android/client/if-hf.c +++ b/android/client/if-hf.c @@ -355,6 +355,14 @@ static void key_pressed_cmd_cb(void) } #endif +#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0) +static void wbs_cb(bthf_wbs_config_t wbs, bt_bdaddr_t *bd_addr) +{ + haltest_info("%s: bd_addr=%s\n", __func__, + bt_bdaddr_t2str(bd_addr, last_addr)); +} +#endif + static bthf_callbacks_t hf_cbacks = { .size = sizeof(hf_cbacks), .connection_state_cb = connection_state_cb, @@ -366,6 +374,9 @@ static bthf_callbacks_t hf_cbacks = { .dial_call_cmd_cb = dial_call_cmd_cb, .dtmf_cmd_cb = dtmf_cmd_cb, .nrec_cmd_cb = nrec_cmd_cb, +#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0) + .wbs_cb = wbs_cb, +#endif .chld_cmd_cb = chld_cmd_cb, .cnum_cmd_cb = cnum_cmd_cb, .cind_cmd_cb = cind_cmd_cb, -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html