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 2016/07/13 20:55:16 UTC
[03/50] [abbrv] incubator-mynewt-core git commit: BLE Host - Don't
auto-generate NRPA.
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/develop
Commit: 9e781e9af3139efb74e41a216c60598c02fc7cf7
Parents: d586c0e
Author: Christopher Collins <cc...@apache.org>
Authored: Thu Jun 23 20:00:33 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
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;