system/bt
Révision | 18a51dc4f68a92b185c206079e4311b52de1315a (tree) |
---|---|
l'heure | 2019-11-14 13:21:27 |
Auteur | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
hciblecmds: remove unnecessary checking
This fixes Bluetooth USB dongle support.
@@ -23,11 +23,14 @@ | ||
23 | 23 | * |
24 | 24 | ******************************************************************************/ |
25 | 25 | |
26 | +#define LOG_TAG "bt_hciblecmds" | |
27 | + | |
26 | 28 | #include "bt_common.h" |
27 | 29 | #include "bt_target.h" |
28 | 30 | #include "btu.h" |
29 | 31 | #include "hcidefs.h" |
30 | 32 | #include "hcimsgs.h" |
33 | +#include "osi/include/log.h" | |
31 | 34 | |
32 | 35 | #include <base/bind.h> |
33 | 36 | #include <stddef.h> |
@@ -396,8 +399,8 @@ void btsnd_hcic_ble_rand(base::Callback<void(BT_OCTET8)> cb) { | ||
396 | 399 | base::Bind( |
397 | 400 | [](base::Callback<void(BT_OCTET8)> cb, |
398 | 401 | uint8_t* param, uint16_t param_len) { |
399 | - CHECK(param[0] == 0) | |
400 | - << "LE Rand return status must be zero"; | |
402 | + LOG_WARN(LOG_TAG, | |
403 | + "LE Rand return status is not zero: %u", param[0]); | |
401 | 404 | cb.Run(param + 1 /* skip status */); |
402 | 405 | }, |
403 | 406 | std::move(cb))); |