Diff between b0fe6045b7d9cfdd02a5e419fc9658a0ffa84619 and cce51615566053cb3c72a9d64992aa31ab5c98f4

Changed Files

File Additions Deletions Status
mesh/gatt.h +11 -0 modified
mesh/node.c +0 -2 modified
mesh/node.h +0 -11 modified

Full Patch

diff --git a/mesh/gatt.h b/mesh/gatt.h
index a2aae25..2878587 100644
--- a/mesh/gatt.h
+++ b/mesh/gatt.h
@@ -23,6 +23,17 @@
 
 #include "gdbus/gdbus.h"
 
+/* Largest Possible GATT Packet: Provisioning Public Key + type + sar */
+#define MAX_GATT_SIZE	(64 + 1 + 1)
+
+#define GATT_SAR_MASK		0xc0
+#define GATT_SAR_COMPLETE	0x00
+#define GATT_SAR_FIRST		0x40
+#define GATT_SAR_CONTINUE	0x80
+#define GATT_SAR_LAST		0xc0
+#define GATT_TYPE_INVALID	0xff
+#define GATT_TYPE_MASK		0x3f
+
 uint16_t mesh_gatt_sar(uint8_t **pkt, uint16_t size);
 bool mesh_gatt_is_child(GDBusProxy *proxy, GDBusProxy *parent,
 			const char *name);
diff --git a/mesh/node.c b/mesh/node.c
index 9c00488..b668550 100644
--- a/mesh/node.c
+++ b/mesh/node.c
@@ -77,12 +77,10 @@ struct mesh_node {
 	uint16_t primary;
 	uint16_t oob;
 	uint16_t features;
-	uint8_t gatt_pkt[MAX_GATT_SIZE];
 	uint8_t dev_uuid[16];
 	uint8_t dev_key[16];
 	uint8_t num_ele;
 	uint8_t ttl;
-	uint8_t gatt_size;
 	bool provisioner;
 	struct mesh_node_composition *comp;
 };
diff --git a/mesh/node.h b/mesh/node.h
index 68c60eb..1fab80a 100644
--- a/mesh/node.h
+++ b/mesh/node.h
@@ -21,17 +21,6 @@
  *
  */
 
-/* Largest Possible GATT Packet: Provisioning Public Key + type + sar */
-#define MAX_GATT_SIZE	(64 + 1 + 1)
-
-#define GATT_SAR_MASK		0xc0
-#define GATT_SAR_COMPLETE	0x00
-#define GATT_SAR_FIRST		0x40
-#define GATT_SAR_CONTINUE	0x80
-#define GATT_SAR_LAST		0xc0
-#define GATT_TYPE_INVALID	0xff
-#define GATT_TYPE_MASK		0x3f
-
 struct mesh_node;
 
 #define ACTION_ADD		1