From: Chih-Wei Huang Date: Thu, 30 May 2019 02:50:19 +0000 (+0800) Subject: hciblecmds: remove unnecessary checking X-Git-Tag: android-x86-9.0-r1~5 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=18a51dc4f68a92b185c206079e4311b52de1315a;p=android-x86%2Fsystem-bt.git hciblecmds: remove unnecessary checking This fixes Bluetooth USB dongle support. --- diff --git a/stack/hcic/hciblecmds.cc b/stack/hcic/hciblecmds.cc index 30d8d7586..cd4b6b87c 100644 --- a/stack/hcic/hciblecmds.cc +++ b/stack/hcic/hciblecmds.cc @@ -23,11 +23,14 @@ * ******************************************************************************/ +#define LOG_TAG "bt_hciblecmds" + #include "bt_common.h" #include "bt_target.h" #include "btu.h" #include "hcidefs.h" #include "hcimsgs.h" +#include "osi/include/log.h" #include #include @@ -396,8 +399,8 @@ void btsnd_hcic_ble_rand(base::Callback cb) { base::Bind( [](base::Callback cb, uint8_t* param, uint16_t param_len) { - CHECK(param[0] == 0) - << "LE Rand return status must be zero"; + LOG_WARN(LOG_TAG, + "LE Rand return status is not zero: %u", param[0]); cb.Run(param + 1 /* skip status */); }, std::move(cb)));