From a964a310b7ad0b2d289e32bb866715d4ffdd0d82 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Mon, 17 Oct 2016 14:10:42 +0900 Subject: [PATCH] Check if the vendor command supports or not for HFP audio setting commands Change-Id: I6c09577b2cfc25363865d3db15dad28fffcb8d43 Signed-off-by: DoHyun Pyun --- src/adapter.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/adapter.c b/src/adapter.c index a1e0d75..e823aaf 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -4050,6 +4050,11 @@ static DBusMessage *set_wbs_parameters(DBusConnection *conn, return btd_error_invalid_args(msg); } + if (adapter_le_read_ble_feature_info() == FALSE) { + error("Not support BCM vendor commands"); + return btd_error_not_supported(msg); + } + DBG("Role = %s", role); DBG("Address = %s", address); @@ -4092,6 +4097,11 @@ static DBusMessage *set_nb_parameters(DBusConnection *conn, return btd_error_invalid_args(msg); } + if (adapter_le_read_ble_feature_info() == FALSE) { + error("Not support BCM vendor commands"); + return btd_error_not_supported(msg); + } + DBG("Role = %s", role); DBG("Address = %s", address); -- 2.7.4