mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccoll...@apache.org
Subject [18/50] [abbrv] incubator-mynewt-core git commit: nimble/controller: Fix len of InitA in advertising report
Date Fri, 07 Apr 2017 18:44:52 GMT
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: Łukasz Rymanowski <lukasz.rymanowski@codecoup.pl>
Authored: Mon Apr 3 15:59:10 2017 +0200
Committer: Łukasz Rymanowski <lukasz.rymanowski@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;


Mime
View raw message