mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccoll...@apache.org
Subject [17/50] [abbrv] incubator-mynewt-core git commit: BLE Host - Don't auto-generate NRPA.
Date Mon, 11 Jul 2016 23:50:07 GMT
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 <ccollins@apache.org>
Authored: Thu Jun 23 20:00:33 2016 -0700
Committer: Christopher Collins <ccollins@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;


Mime
View raw message