diff --git a/android/client/if-hf.c b/android/client/if-hf.c
index c64d412..d24612a 100644
--- a/android/client/if-hf.c
+++ b/android/client/if-hf.c
DELEMENT(BTHF_CALL_ADDRTYPE_INTERNATIONAL),
ENDMAP
+SINTMAP(bthf_wbs_config_t, -1, "(unknown)")
+ DELEMENT(BTHF_WBS_NONE),
+ DELEMENT(BTHF_WBS_NO),
+ DELEMENT(BTHF_WBS_YES),
+ENDMAP
+
/* Callbacks */
static char last_addr[MAX_ADDR_STR_LEN];
#endif
}
+#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
+static void configure_wbs_c(int argc, const char **argv, enum_func *enum_func,
+ void **user)
+{
+ if (argc == 4) {
+ *user = TYPE_ENUM(bthf_wbs_config_t);
+ *enum_func = enum_defines;
+ }
+}
+
+static void configure_wbs_p(int argc, const char **argv)
+{
+ bthf_wbs_config_t wbs;
+ bt_bdaddr_t addr;
+
+ RETURN_IF_NULL(if_hf);
+
+ if (argc <= 3) {
+ haltest_error("Too few parameters specified\n");
+ return;
+ }
+
+ VERIFY_ADDR_ARG(2, &addr);
+ wbs = str2bthf_wbs_config_t(argv[3]);
+
+ EXEC(if_hf->configure_wbs, &addr, wbs);
+}
+#endif
+
/* phone state change */
static void phone_state_change_c(int argc, const char **argv,
STD_METHODCH(clcc_response,
"<index> <direction> <state> <mode> <mpty> <number> "
"<type> <addr>"),
+ STD_METHODCH(configure_wbs, "<addr> <wbs config>"),
#else
STD_METHOD(init),
STD_METHOD(start_voice_recognition),