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:14 UTC

[mynewt-nimble] 09/13: nimble/ll: Keep connecting in case of error when decoding address

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 c2a36ebebeb6bbf9e5cdfa3eb591fd292209377e
Author: Ɓukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Fri Nov 16 15:05:22 2018 +0100

    nimble/ll: Keep connecting in case of error when decoding address
---
 nimble/controller/src/ble_ll_conn.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/nimble/controller/src/ble_ll_conn.c b/nimble/controller/src/ble_ll_conn.c
index cdeff55..f170000 100644
--- a/nimble/controller/src/ble_ll_conn.c
+++ b/nimble/controller/src/ble_ll_conn.c
@@ -2974,7 +2974,8 @@ ble_ll_init_rx_pkt_in(uint8_t pdu_type, uint8_t *rxbuf,
         if (ble_ll_scan_adv_decode_addr(pdu_type, rxbuf, ble_hdr,
                                         &adv_addr, &addr_type,
                                         NULL, NULL, &ext_adv_mode)) {
-            return;
+            /* Something got wrong, keep trying to connect */
+            goto scan_continue;
         }
 
         if (ble_ll_scan_whitelist_enabled()) {