diff --git a/mesh/gatt.h b/mesh/gatt.h
index a2aae25..2878587 100644
--- a/mesh/gatt.h
+++ b/mesh/gatt.h
#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
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
*
*/
-/* 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