Bluetooth: Mesh: Missing _ when concate with _name

Add `_` for concate with _name.

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
Lingao Meng 2021-08-13 14:12:19 +08:00 committed by Christopher Friedt
commit 8131d848f2
2 changed files with 7 additions and 7 deletions

View file

@ -598,9 +598,9 @@ struct bt_mesh_lpn_cb {
*
* @param _name Name of callback structure.
*/
#define BT_MESH_LPN_CB_DEFINE(_name) \
static const STRUCT_SECTION_ITERABLE(bt_mesh_lpn_cb, \
_CONCAT(bt_mesh_lpn_cb, \
#define BT_MESH_LPN_CB_DEFINE(_name) \
static const STRUCT_SECTION_ITERABLE(bt_mesh_lpn_cb, \
_CONCAT(bt_mesh_lpn_cb_, \
_name))
/** Friend Node callback functions. */
@ -651,9 +651,9 @@ struct bt_mesh_friend_cb {
*
* @param _name Name of callback structure.
*/
#define BT_MESH_FRIEND_CB_DEFINE(_name) \
static const STRUCT_SECTION_ITERABLE(bt_mesh_friend_cb, \
_CONCAT(bt_mesh_friend_cb, \
#define BT_MESH_FRIEND_CB_DEFINE(_name) \
static const STRUCT_SECTION_ITERABLE(bt_mesh_friend_cb, \
_CONCAT(bt_mesh_friend_cb_, \
_name))
/** @brief Terminate Friendship.

View file

@ -51,7 +51,7 @@ struct bt_mesh_proxy_cb {
*/
#define BT_MESH_PROXY_CB_DEFINE(_name) \
static const STRUCT_SECTION_ITERABLE( \
bt_mesh_proxy_cb, _CONCAT(bt_mesh_proxy_cb, _name))
bt_mesh_proxy_cb, _CONCAT(bt_mesh_proxy_cb_, _name))
/** @brief Enable advertising with Node Identity.
*