From cc10435c4fff91c2a2d66e8b910ff409038dfb3f Mon Sep 17 00:00:00 2001 From: Anupam Roy Date: Tue, 11 Aug 2020 20:00:28 +0530 Subject: [PATCH] Mesh: Remove limitation of five Networks This patch removes limitation of total 5 Mesh Networks per app from CAPI layer. TODO: Restriction per app will be handled in service layer Change-Id: Ib8442db1cd0a95a9580303bf353d1bd0417e5d3f Signed-off-by: Anupam Roy --- src/bluetooth-mesh.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/bluetooth-mesh.c b/src/bluetooth-mesh.c index a8d09ae..2a1045e 100644 --- a/src/bluetooth-mesh.c +++ b/src/bluetooth-mesh.c @@ -31,7 +31,6 @@ #include "bluetooth_private.h" #include "bluetooth-mesh-api.h" -#define BT_MESH_MAX_NETWORKS 5 #define BT_MESH_MAX_ELEMENTS 32767 #define BT_MESH_MAX_MODELS 32767 #define BT_MESH_MAX_NODES 32767 @@ -1198,10 +1197,6 @@ int bt_mesh_network_create(bt_mesh_node_h config_client, num_models += models; } - /* Check currently created network */ - if (g_slist_length(networks) >= BT_MESH_MAX_NETWORKS) - return BT_ERROR_QUOTA_EXCEEDED; - memset(¶m_node, 0x00, sizeof(bluetooth_mesh_node_t)); memcpy(¶m_node.vendor_info, &(node->features), sizeof(node->features)); param_node.num_elements = g_slist_length(node->elements); -- 2.7.4