You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ry...@apache.org on 2018/11/14 16:39:13 UTC
[mynewt-nimble] 03/05: Dynamically considering pointer size to
support multiple platforms
This is an automated email from the ASF dual-hosted git repository.
rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit e6fd6e948a4d49263d280127241680b636ed344a
Author: Mehul Hirpara <me...@inedasystems.com>
AuthorDate: Wed Oct 24 17:48:07 2018 +0530
Dynamically considering pointer size to support multiple platforms
This change helps filling bt_mesh_adv buffer correctly while sending
secure beacons (on Linux platform).
---
nimble/host/mesh/src/adv.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nimble/host/mesh/src/adv.h b/nimble/host/mesh/src/adv.h
index d37e0d4..8e76e41 100644
--- a/nimble/host/mesh/src/adv.h
+++ b/nimble/host/mesh/src/adv.h
@@ -17,7 +17,7 @@
#define BT_MESH_ADV_DATA_SIZE 31
/* The user data is a pointer (4 bytes) to struct bt_mesh_adv */
-#define BT_MESH_ADV_USER_DATA_SIZE 4
+#define BT_MESH_ADV_USER_DATA_SIZE (sizeof(struct bt_mesh_adv *))
#define BT_MESH_MBUF_HEADER_SIZE (sizeof(struct os_mbuf_pkthdr) + \
BT_MESH_ADV_USER_DATA_SIZE +\