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
This commit is contained in:
Łukasz Rymanowski
2019-01-31 16:34:04 +01:00
parent f6c641bef5
commit 3d5971076e
+1 -1
View File
@@ -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 */