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/07/12 13:46:47 UTC

[mynewt-nimble] 10/12: nimble/ll: Check if truncated on CRC error

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 7a9e3147aa4edf0231478539f0546d414735d4e5
Author: Ɓukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Wed Jul 10 16:36:16 2019 +0200

    nimble/ll: Check if truncated on CRC error
---
 nimble/controller/src/ble_ll_scan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/controller/src/ble_ll_scan.c b/nimble/controller/src/ble_ll_scan.c
index 021cd07..51fb50d 100644
--- a/nimble/controller/src/ble_ll_scan.c
+++ b/nimble/controller/src/ble_ll_scan.c
@@ -3199,7 +3199,7 @@ scan_continue:
 
 #if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_EXT_ADV)
     if (aux_data) {
-        if (evt_possibly_truncated) {
+        if (evt_possibly_truncated || !BLE_MBUF_HDR_CRC_OK(hdr)) {
             ble_ll_scan_end_adv_evt(aux_data);
         }