wireless/bluetooth/bt_smp.c: Avoid assuming wlinfo expansion

This commit is contained in:
YAMAMOTO Takashi
2020-11-23 17:34:24 +09:00
committed by Xiang Xiao
parent 14b7ea01ba
commit 2a2679e11a
-4
View File
@@ -138,9 +138,7 @@ struct bt_smphandlers_s
* Private Function Prototypes * Private Function Prototypes
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_DEBUG_WIRELESS_INFO
static const char *h(FAR const void *buf, size_t len); static const char *h(FAR const void *buf, size_t len);
#endif
static void xor_128(FAR const struct uint128_s *p, static void xor_128(FAR const struct uint128_s *p,
FAR const struct uint128_s *q, FAR struct uint128_s *r); FAR const struct uint128_s *q, FAR struct uint128_s *r);
static int le_encrypt(const uint8_t key[16], const uint8_t plaintext[16], static int le_encrypt(const uint8_t key[16], const uint8_t plaintext[16],
@@ -323,7 +321,6 @@ static const uint8_t g_mac4[] =
* in a single syslog call. * in a single syslog call.
*/ */
#ifdef CONFIG_DEBUG_WIRELESS_INFO
static const char *h(FAR const void *buf, size_t len) static const char *h(FAR const void *buf, size_t len)
{ {
static const char hex[] = "0123456789abcdef"; static const char hex[] = "0123456789abcdef";
@@ -352,7 +349,6 @@ static const char *h(FAR const void *buf, size_t len)
str[i * 2] = '\0'; str[i * 2] = '\0';
return str; return str;
} }
#endif
static void xor_128(FAR const struct uint128_s *p, static void xor_128(FAR const struct uint128_s *p,
FAR const struct uint128_s *q, FAR const struct uint128_s *q,