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 2019/01/08 13:11:25 UTC

[mynewt-nimble] 03/06: nimble/ll: Fix legacy extended directed advertising event length

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 8ec1aa01dfd47350f778c6041214b159210267c9
Author: Ɓukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Thu Jan 3 12:10:45 2019 +0100

    nimble/ll: Fix legacy extended directed advertising event length
    
    Directed address is already within `struct ble_ll_ext_adv_report' so
    there is no need to increase `evt->event_len`
---
 nimble/controller/src/ble_ll_scan.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/nimble/controller/src/ble_ll_scan.c b/nimble/controller/src/ble_ll_scan.c
index 6498bda..719ee11 100644
--- a/nimble/controller/src/ble_ll_scan.c
+++ b/nimble/controller/src/ble_ll_scan.c
@@ -753,7 +753,6 @@ ble_ll_hci_send_legacy_ext_adv_report(uint8_t evtype,
     if (inita) {
         evt->dir_addr_type = inita_type;
         memcpy(evt->dir_addr, inita, BLE_DEV_ADDR_LEN);
-        evt->event_len += BLE_DEV_ADDR_LEN  + 1;
     } else if (adv_data_len <= (MYNEWT_VAL(BLE_HCI_EVT_BUF_SIZE) - sizeof(*evt))) {
         evt->adv_data_len = adv_data_len;
         os_mbuf_copydata(adv_data, 0, adv_data_len, evt->adv_data);