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 8CDE0200B67 for ; Tue, 12 Jul 2016 01:49:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8BB77160A85; Mon, 11 Jul 2016 23:49:57 +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 E5FBC160A86 for ; Tue, 12 Jul 2016 01:49:56 +0200 (CEST) Received: (qmail 38639 invoked by uid 500); 11 Jul 2016 23:49:56 -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 38619 invoked by uid 99); 11 Jul 2016 23:49:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2016 23:49:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 705771814E0 for ; Mon, 11 Jul 2016 23:49:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id q5D-F6wZ2-SO for ; Mon, 11 Jul 2016 23:49:54 +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 EFD0A60DC9 for ; Mon, 11 Jul 2016 23:49:52 +0000 (UTC) Received: (qmail 37900 invoked by uid 99); 11 Jul 2016 23:49:51 -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; Mon, 11 Jul 2016 23:49:51 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C4C48E032D; Mon, 11 Jul 2016 23:49:51 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ccollins@apache.org To: commits@mynewt.incubator.apache.org Date: Mon, 11 Jul 2016 23:50:07 -0000 Message-Id: <85d222e971de41bca5b741b8fd526fe5@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [17/50] [abbrv] incubator-mynewt-core git commit: BLE Host - Don't auto-generate NRPA. archived-at: Mon, 11 Jul 2016 23:49:57 -0000 BLE Host - Don't auto-generate NRPA. We were overwriting our random address with a new NRPA whenever the application performed a discovery or advertise procedure with an own_addr_type of random. The stack should not overwrite the address automatically, the application should set it. 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/9e781e9a Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/9e781e9a Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/9e781e9a Branch: refs/heads/ble_hs_api Commit: 9e781e9af3139efb74e41a216c60598c02fc7cf7 Parents: d586c0e Author: Christopher Collins Authored: Thu Jun 23 20:00:33 2016 -0700 Committer: Christopher Collins Committed: Mon Jul 11 16:43:31 2016 -0700 ---------------------------------------------------------------------- net/nimble/host/src/ble_gap.c | 8 -------- 1 file changed, 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9e781e9a/net/nimble/host/src/ble_gap.c ---------------------------------------------------------------------- diff --git a/net/nimble/host/src/ble_gap.c b/net/nimble/host/src/ble_gap.c index 8792083..57502f8 100644 --- a/net/nimble/host/src/ble_gap.c +++ b/net/nimble/host/src/ble_gap.c @@ -1612,10 +1612,6 @@ ble_gap_adv_start(uint8_t own_addr_type, uint8_t peer_addr_type, } } - if (own_addr_type == BLE_HCI_ADV_OWN_ADDR_RANDOM) { - ble_hs_pvcy_set_our_nrpa(); - } - BLE_HS_LOG(INFO, "GAP procedure initiated: advertise; "); ble_gap_log_adv(own_addr_type, peer_addr_type, peer_addr, adv_params); BLE_HS_LOG(INFO, "\n"); @@ -1917,10 +1913,6 @@ ble_gap_disc(uint8_t own_addr_type, int32_t duration_ms, } } - if (own_addr_type == BLE_HCI_ADV_OWN_ADDR_RANDOM) { - ble_hs_pvcy_set_our_nrpa(); - } - ble_gap_master.disc.limited = params.limited; ble_gap_master.disc.cb = cb; ble_gap_master.disc.cb_arg = cb_arg;