You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2021/02/19 08:41:47 UTC

[mynewt-nimble] 01/02: mesh: Fix build with advertising extensions enabled

This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit d9f759537234c1774baed914ad5d52baa8279019
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Thu Feb 18 12:44:36 2021 +0100

    mesh: Fix build with advertising extensions enabled
    
    Error: repos/apache-mynewt-nimble/nimble/host/mesh/src/adv.c: In function 'ble_adv_gap_mesh_cb':
    repos/apache-mynewt-nimble/nimble/host/mesh/src/adv.c:364:45: error: 'struct ble_gap_ext_disc_desc'
         has no member named 'om_data'; did you mean 'data'?
      364 |   if (!buf || os_mbuf_append(buf, ext_desc->om_data, ext_desc->length_data)) {
          |                                             ^~~~~~~
          |                                             data
---
 nimble/host/mesh/src/adv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/host/mesh/src/adv.c b/nimble/host/mesh/src/adv.c
index 4b37299..46c8138 100644
--- a/nimble/host/mesh/src/adv.c
+++ b/nimble/host/mesh/src/adv.c
@@ -361,7 +361,7 @@ ble_adv_gap_mesh_cb(struct ble_gap_event *event, void *arg)
 	case BLE_GAP_EVENT_EXT_DISC:
 		ext_desc = &event->ext_disc;
 		buf = os_mbuf_get_pkthdr(&adv_os_mbuf_pool, 0);
-		if (!buf || os_mbuf_append(buf, ext_desc->om_data, ext_desc->length_data)) {
+		if (!buf || os_mbuf_append(buf, ext_desc->data, ext_desc->length_data)) {
 			BT_ERR("Could not append data");
 			goto done;
 		}