mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
wireless/bluetooth/bt_hcicore.c: Avoid assuming wlinfo expansion
This commit is contained in:
committed by
Xiang Xiao
parent
f0fc385232
commit
af4f81a7e1
@@ -2144,7 +2144,6 @@ void bt_conn_cb_register(FAR struct bt_conn_cb_s *cb)
|
|||||||
g_callback_list = cb;
|
g_callback_list = cb;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_WIRELESS_ERROR
|
|
||||||
FAR const char *bt_addr_str(FAR const bt_addr_t *addr)
|
FAR const char *bt_addr_str(FAR const bt_addr_t *addr)
|
||||||
{
|
{
|
||||||
static char bufs[2][18];
|
static char bufs[2][18];
|
||||||
@@ -2170,7 +2169,6 @@ FAR const char *bt_addr_le_str(FAR const bt_addr_le_t *addr)
|
|||||||
|
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_DEBUG_WIRELESS_ERROR */
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|||||||
@@ -327,10 +327,8 @@ int bt_hci_cmd_send_sync(uint16_t opcode, FAR struct bt_buf_s *buf,
|
|||||||
* not multi-threading safe
|
* not multi-threading safe
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_WIRELESS_ERROR
|
|
||||||
FAR const char *bt_addr_str(FAR const bt_addr_t *addr);
|
FAR const char *bt_addr_str(FAR const bt_addr_t *addr);
|
||||||
FAR const char *bt_addr_le_str(FAR const bt_addr_le_t *addr);
|
FAR const char *bt_addr_le_str(FAR const bt_addr_le_t *addr);
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: bt_start_advertising
|
* Name: bt_start_advertising
|
||||||
|
|||||||
Reference in New Issue
Block a user