Tizen bluez sends HW Error event, when the vendor
specific command sending is fail. The VSC is defined
only for some BT chips. So TM1 reference target always
fail to send VSC. So BT enable can't success.
Change-Id: Id52ea5df0b7eb2c51dafad4d6a2a7b018c44c8ba
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
uint8_t *error_code = event_data;
BT_INFO("OAL_EVENT_CONTROLLER_ERROR_RECEIVED: [%d]", *error_code);
+
#ifdef TIZEN_FEATURE_BT_PERMANENT_LOG
_bt_start_log_dump("syslog");
#endif
+
+#ifdef TIZEN_FEATURE_BT_VENDOR_OPERATION
_bt_recover_adapter();
+#endif
break;
}
default:
%define bt_http_proxy DISABLED
%define bt_factory_mode DISABLED
%define bt_avc_target ENABLED
+%define bt_vendor_operation DISABLED
BuildRequires: pkgconfig(aul)
%if %{bt_factory_mode} == ENABLED
export CFLAGS="$CFLAGS -DTIZEN_FEATURE_BT_AVC_TARGET"
%endif
+%if %{bt_vendor_operation} == ENABLED
+export CFLAGS="$CFLAGS -DTIZEN_FEATURE_BT_VENDOR_OPERATION"
+%endif
+
+
%ifarch %{ix86} x86_64
export CFLAGS+=" -DTIZEN_TEST_EMUL"
export CXXFLAGS+=" -DTIZEN_TEST_EMUL"