You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/12/06 15:03:30 UTC

[incubator-nuttx] 11/18: wireless/bluetooth/bt_smp.c: Avoid assuming wlinfo expansion

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 2a2679e11a21ae6a6d6ca84494ca63ec2b9bcb55
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Mon Nov 23 17:34:24 2020 +0900

    wireless/bluetooth/bt_smp.c: Avoid assuming wlinfo expansion
---
 wireless/bluetooth/bt_smp.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/wireless/bluetooth/bt_smp.c b/wireless/bluetooth/bt_smp.c
index 1c43806..29a8a07 100644
--- a/wireless/bluetooth/bt_smp.c
+++ b/wireless/bluetooth/bt_smp.c
@@ -138,9 +138,7 @@ struct bt_smphandlers_s
  * Private Function Prototypes
  ****************************************************************************/
 
- #ifdef CONFIG_DEBUG_WIRELESS_INFO
 static const char *h(FAR const void *buf, size_t len);
-#endif
 static void     xor_128(FAR const struct uint128_s *p,
                   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],
@@ -323,7 +321,6 @@ static const uint8_t g_mac4[] =
  * in a single syslog call.
  */
 
-#ifdef CONFIG_DEBUG_WIRELESS_INFO
 static const char *h(FAR const void *buf, size_t len)
 {
   static const char hex[] = "0123456789abcdef";
@@ -352,7 +349,6 @@ static const char *h(FAR const void *buf, size_t len)
   str[i * 2] = '\0';
   return str;
 }
-#endif
 
 static void xor_128(FAR const struct uint128_s *p,
                     FAR const struct uint128_s *q,