mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-11-04 19:42:47 +00:00
mesh: Fix available LPN groups count
X-Original-Commit: 22228bdc87d78141849ac0715c39ef50c32436fb
This commit is contained in:
@@ -349,7 +349,7 @@ static inline unsigned int find_msb_set(u32_t op)
|
||||
/* Above flags are used with IS_ENABLED macro */
|
||||
#define IS_ENABLED(config) MYNEWT_VAL(config)
|
||||
|
||||
#define CONFIG_BLUETOOTH_MESH_LPN_GROUPS MYNEWT_VAL(BLE_MESH_LPN_GROUPS)
|
||||
#define CONFIG_BT_MESH_LPN_GROUPS MYNEWT_VAL(BLE_MESH_LPN_GROUPS)
|
||||
#define CONFIG_BT_MESH_ADV_BUF_COUNT MYNEWT_VAL(BLE_MESH_ADV_BUF_COUNT)
|
||||
#define CONFIG_BT_MESH_FRIEND_QUEUE_SIZE MYNEWT_VAL(BLE_MESH_FRIEND_QUEUE_SIZE)
|
||||
#define CONFIG_BT_MESH_FRIEND_RECV_WIN MYNEWT_VAL(BLE_MESH_FRIEND_RECV_WIN)
|
||||
|
||||
@@ -613,7 +613,7 @@ static void lpn_group_del(u16_t group)
|
||||
|
||||
static inline int group_popcount(atomic_t *target)
|
||||
{
|
||||
#if CONFIG_BLUETOOTH_MESH_LPN_GROUPS > 32
|
||||
#if CONFIG_BT_MESH_LPN_GROUPS > 32
|
||||
int i, count = 0;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(bt_mesh.lpn.added); i++) {
|
||||
|
||||
@@ -121,7 +121,7 @@ struct bt_mesh_friend {
|
||||
};
|
||||
|
||||
#if (MYNEWT_VAL(BLE_MESH_LOW_POWER))
|
||||
#define LPN_GROUPS MYNEWT_VAL(BLE_MESH_LOW_POWER)
|
||||
#define LPN_GROUPS CONFIG_BT_MESH_LPN_GROUPS
|
||||
#else
|
||||
#define LPN_GROUPS 0
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user