Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8B015200C5E for ; Fri, 7 Apr 2017 20:44:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 89D89160B84; Fri, 7 Apr 2017 18:44:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D9903160B97 for ; Fri, 7 Apr 2017 20:44:40 +0200 (CEST) Received: (qmail 83093 invoked by uid 500); 7 Apr 2017 18:44:40 -0000 Mailing-List: contact commits-help@mynewt.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mynewt.incubator.apache.org Delivered-To: mailing list commits@mynewt.incubator.apache.org Received: (qmail 83069 invoked by uid 99); 7 Apr 2017 18:44:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Apr 2017 18:44:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 991B3C047D for ; Fri, 7 Apr 2017 18:44:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.221 X-Spam-Level: X-Spam-Status: No, score=-4.221 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id DUjKDNXhEvWY for ; Fri, 7 Apr 2017 18:44:39 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 0AE9760D40 for ; Fri, 7 Apr 2017 18:44:36 +0000 (UTC) Received: (qmail 82733 invoked by uid 99); 7 Apr 2017 18:44:36 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Apr 2017 18:44:36 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DCFECED495; Fri, 7 Apr 2017 18:44:35 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: ccollins@apache.org To: commits@mynewt.incubator.apache.org Date: Fri, 07 Apr 2017 18:44:52 -0000 Message-Id: <1f5dc4002a7945ee87108e13612a5925@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [18/50] [abbrv] incubator-mynewt-core git commit: nimble/controller: Fix len of InitA in advertising report archived-at: Fri, 07 Apr 2017 18:44:41 -0000 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 Authored: Mon Apr 3 15:59:10 2017 +0200 Committer: Łukasz Rymanowski 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;