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 2019/11/06 10:49:25 UTC
[mynewt-nimble] branch master updated: nimble/host: Fix setting big
periodic advertising data
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
The following commit(s) were added to refs/heads/master by this push:
new 9e4eaed nimble/host: Fix setting big periodic advertising data
9e4eaed is described below
commit 9e4eaed19acfba4293ba8665794bcd685a7b0879
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Tue Nov 5 10:17:14 2019 +0100
nimble/host: Fix setting big periodic advertising data
---
nimble/host/src/ble_gap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c
index a3458e8..ddba9eb 100644
--- a/nimble/host/src/ble_gap.c
+++ b/nimble/host/src/ble_gap.c
@@ -3267,7 +3267,7 @@ ble_gap_periodic_adv_set(uint8_t instance, struct os_mbuf **data)
do{
cmd->operation = op;
- cmd->adv_data_len = len;
+ cmd->adv_data_len = BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN;
os_mbuf_copydata(*data, 0, BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN,
cmd->adv_data);