Check if the vendor command supports or not for HFP audio setting commands 50/92450/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 17 Oct 2016 05:10:42 +0000 (14:10 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 17 Oct 2016 05:10:42 +0000 (14:10 +0900)
Change-Id: I6c09577b2cfc25363865d3db15dad28fffcb8d43
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/adapter.c

index a1e0d75..e823aaf 100644 (file)
@@ -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);