You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by na...@apache.org on 2021/05/27 08:20:00 UTC
[mynewt-nimble] 22/31: mesh: Set BT_MESH_ADV_USER_DATA_SIZE to size
of 4 byte pointer
This is an automated email from the ASF dual-hosted git repository.
naraj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit bc1fe4e4320976d23d84db4c36f612741fb6245e
Author: Krzysztof Kopyściński <kr...@codecoup.pl>
AuthorDate: Thu Apr 22 10:59:19 2021 +0200
mesh: Set BT_MESH_ADV_USER_DATA_SIZE to size of 4 byte pointer
this is affecting MESH/NODE/TNPT/BV-04-C
---
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 779ee58..6566df9 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 (sizeof(struct bt_mesh_adv *))
+#define BT_MESH_ADV_USER_DATA_SIZE 4
#define BT_MESH_MBUF_HEADER_SIZE (sizeof(struct os_mbuf_pkthdr) + \
BT_MESH_ADV_USER_DATA_SIZE +\