Ignore the recovery logic for HW Error event 36/227836/2 accepted/tizen/5.5/unified/20200318.130553 submit/tizen/20200317.221526 submit/tizen_5.5/20200317.221607
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 16 Mar 2020 23:45:41 +0000 (08:45 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 16 Mar 2020 23:52:33 +0000 (08:52 +0900)
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>
bt-service-adaptation/services/adapter/bt-service-core-adapter.c
packaging/bluetooth-frwk.spec

index ad89b41..dba5a06 100644 (file)
@@ -1283,10 +1283,14 @@ static void __bt_adapter_event_handler(int event_type, gpointer event_data)
                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:
index 3862b09..1ae72ed 100644 (file)
@@ -23,6 +23,7 @@ Requires: bluetooth-tools
 %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
@@ -288,6 +289,11 @@ export CFLAGS="$CFLAGS -DTIZEN_FEATURE_BT_FACTORY_MODE"
 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"