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/31 15:34:10 UTC

[mynewt-nimble] branch master updated: nimble/ll: Fix updating advertiser RPA on AUX_CONNECT_RSP

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


The following commit(s) were added to refs/heads/master by this push:
     new 3d59710  nimble/ll: Fix updating advertiser RPA on AUX_CONNECT_RSP
3d59710 is described below

commit 3d5971076e7096eee01790a240b0c99c50922704
Author: Ɓukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Thu Jan 31 12:53:19 2019 +0100

    nimble/ll: Fix updating advertiser RPA on AUX_CONNECT_RSP
    
    In adv_addr there is an address we shall use and not to try to decoded it
    from rxbuf.
    This patch fixes that.
    
    This fixes HCI/CM/BV-04-C
---
 nimble/controller/src/ble_ll_conn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/controller/src/ble_ll_conn.c b/nimble/controller/src/ble_ll_conn.c
index 1efcf56..5477d53 100644
--- a/nimble/controller/src/ble_ll_conn.c
+++ b/nimble/controller/src/ble_ll_conn.c
@@ -3040,7 +3040,7 @@ ble_ll_init_rx_pkt_in(uint8_t pdu_type, uint8_t *rxbuf,
         }
 
         if (connsm->rpa_index >= 0) {
-            ble_ll_scan_set_peer_rpa(rxbuf + BLE_LL_PDU_HDR_LEN);
+            ble_ll_scan_set_peer_rpa(adv_addr);
 
 #if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_PRIVACY)
             /* Update resolving list with current peer RPA */