summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPyun DoHyun <dh79.pyun@samsung.com>2020-08-11 22:45:00 +0000
committerGerrit Code Review <gerrit@review>2020-08-11 22:45:00 +0000
commit35ba73afbb4f4c08f0bc614d8bff1bf15cd1ee0c (patch)
treea98112a55af411d1cd8e86a25f5cd186f1a5ef90
parentd942eeb30d1dafbf807b3e02653292773fa519ba (diff)
parentcc10435c4fff91c2a2d66e8b910ff409038dfb3f (diff)
downloadbluetooth-35ba73afbb4f4c08f0bc614d8bff1bf15cd1ee0c.tar.gz
bluetooth-35ba73afbb4f4c08f0bc614d8bff1bf15cd1ee0c.tar.bz2
bluetooth-35ba73afbb4f4c08f0bc614d8bff1bf15cd1ee0c.zip
Merge "Mesh: Remove limitation of five Networks" into tizen
-rw-r--r--src/bluetooth-mesh.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/bluetooth-mesh.c b/src/bluetooth-mesh.c
index 67c0cbe..a6b273f 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(&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);