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/12/05 12:24:11 UTC

[mynewt-nimble] 06/13: nimble/ll: Remove evt reference from aux_data

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 e6a63e3cefff3e3003ed549ba81240470aa154df
Author: Ɓukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Fri Nov 9 10:32:08 2018 +0100

    nimble/ll: Remove evt reference from aux_data
    
    Once aux_data->evt is taken, remove reference to it from aux_data as it
    is not needed.
---
 nimble/controller/src/ble_ll_scan.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nimble/controller/src/ble_ll_scan.c b/nimble/controller/src/ble_ll_scan.c
index 402dbd8..8b9d270 100644
--- a/nimble/controller/src/ble_ll_scan.c
+++ b/nimble/controller/src/ble_ll_scan.c
@@ -2370,6 +2370,7 @@ ble_ll_hci_send_ext_adv_report(uint8_t ptype, uint8_t *adva, uint8_t adva_type,
      */
     if (aux_data && aux_data->evt) {
         evt = aux_data->evt;
+        aux_data->evt = NULL;
     } else {
         evt = ble_ll_scan_init_ext_adv_report(NULL);
         if (!evt) {