You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2017/04/07 18:44:52 UTC
[18/50] [abbrv] incubator-mynewt-core git commit: nimble/controller:
Fix len of InitA in advertising report
nimble/controller: Fix len of InitA in advertising report
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/94cfca32
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/94cfca32
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/94cfca32
Branch: refs/heads/master
Commit: 94cfca3213f90310e9273836d664f3de393a5ed9
Parents: bf72b35
Author: \u0141ukasz Rymanowski <lu...@codecoup.pl>
Authored: Mon Apr 3 15:59:10 2017 +0200
Committer: \u0141ukasz Rymanowski <lu...@codecoup.pl>
Committed: Mon Apr 3 16:20:06 2017 +0200
----------------------------------------------------------------------
net/nimble/controller/src/ble_ll_scan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/94cfca32/net/nimble/controller/src/ble_ll_scan.c
----------------------------------------------------------------------
diff --git a/net/nimble/controller/src/ble_ll_scan.c b/net/nimble/controller/src/ble_ll_scan.c
index 4fa866c..90869ff 100644
--- a/net/nimble/controller/src/ble_ll_scan.c
+++ b/net/nimble/controller/src/ble_ll_scan.c
@@ -467,7 +467,7 @@ ble_ll_hci_send_adv_report(uint8_t pdu_type, uint8_t txadd, uint8_t *rxbuf,
evbuf += 5;
if (inita) {
evbuf[0] = BLE_HCI_ADV_OWN_ADDR_RANDOM;
- memcpy(evbuf + 1, inita, adv_data_len);
+ memcpy(evbuf + 1, inita, BLE_DEV_ADDR_LEN);
evbuf += BLE_DEV_ADDR_LEN + 1;
} else {
evbuf[7] = adv_data_len;