Mesh: Remove limitation of five Networks 06/240806/3
authorAnupam Roy <anupam.r@samsung.com>
Tue, 11 Aug 2020 14:30:28 +0000 (20:00 +0530)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 11 Aug 2020 14:48:43 +0000 (20:18 +0530)
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 <anupam.r@samsung.com>
src/bluetooth-mesh.c

index a8d09ae..2a1045e 100644 (file)
@@ -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(&param_node, 0x00, sizeof(bluetooth_mesh_node_t));
        memcpy(&param_node.vendor_info, &(node->features), sizeof(node->features));
        param_node.num_elements =  g_slist_length(node->elements);