From: Anupam Roy Date: Tue, 11 Aug 2020 14:30:28 +0000 (+0530) Subject: Mesh: Remove limitation of five Networks X-Git-Tag: submit/tizen/20200811.230110~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F06%2F240806%2F3;p=platform%2Fcore%2Fapi%2Fbluetooth.git 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 --- 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);