OSDN Git Service

hciblecmds: remove unnecessary checking
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 30 May 2019 02:50:19 +0000 (10:50 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 14 Nov 2019 04:21:27 +0000 (12:21 +0800)
This fixes Bluetooth USB dongle support.

stack/hcic/hciblecmds.cc

index 30d8d75..cd4b6b8 100644 (file)
  *
  ******************************************************************************/
 
+#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 <base/bind.h>
 #include <stddef.h>
@@ -396,8 +399,8 @@ void btsnd_hcic_ble_rand(base::Callback<void(BT_OCTET8)> cb) {
                             base::Bind(
                                 [](base::Callback<void(BT_OCTET8)> 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)));