Skip to content

Commit c998248

Browse files
committed
BLE: Reintroduce changes to address types lost.
1 parent 93d8c71 commit c998248

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_SOFTDEVICE/TARGET_NRF51/source/nRF5xGap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ peer_address_type_t convert_nordic_address(uint8_t address) {
7979
}
8080

8181
peer_address_type_t convert_identity_address(advertising_peer_address_type_t address) {
82-
if (address == advertising_peer_address_type_t::PUBLIC_ADDRESS) {
82+
if (address == advertising_peer_address_type_t::PUBLIC) {
8383
return peer_address_type_t::PUBLIC_IDENTITY;
8484
} else {
8585
return peer_address_type_t::RANDOM_STATIC_IDENTITY;

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_SOFTDEVICE/TARGET_NRF51/source/nRF5xPalSecurityManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,10 +988,10 @@ bool nRF5xSecurityManager::sm_handler(const ble_evt_t *evt)
988988
);
989989

990990
advertising_peer_address_type_t
991-
address_type(advertising_peer_address_type_t::PUBLIC_ADDRESS);
991+
address_type(advertising_peer_address_type_t::PUBLIC);
992992

993993
if (pairing_cb->peer_id_key.id_addr_info.addr_type) {
994-
address_type = advertising_peer_address_type_t::RANDOM_ADDRESS;
994+
address_type = advertising_peer_address_type_t::RANDOM;
995995
}
996996

997997
handler->on_keys_distributed_bdaddr(

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_SOFTDEVICE/TARGET_NRF51/source/nRF5xPalSecurityManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class nRF5xSecurityManager : public ::ble::pal::SecurityManager {
9090
struct resolving_list_entry_t {
9191
resolving_list_entry_t() :
9292
peer_identity_address_type(
93-
advertising_peer_address_type_t::PUBLIC_ADDRESS
93+
advertising_peer_address_type_t::PUBLIC
9494
)
9595
{ }
9696

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_SOFTDEVICE/TARGET_NRF52/source/nRF5xGap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ peer_address_type_t convert_nordic_address(bool identity, uint8_t address) {
108108
}
109109

110110
peer_address_type_t convert_identity_address(advertising_peer_address_type_t address) {
111-
if (address == advertising_peer_address_type_t::PUBLIC_ADDRESS) {
111+
if (address == advertising_peer_address_type_t::PUBLIC) {
112112
return peer_address_type_t::PUBLIC_IDENTITY;
113113
} else {
114114
return peer_address_type_t::RANDOM_STATIC_IDENTITY;

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_SOFTDEVICE/TARGET_NRF52/source/nRF5xPalSecurityManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,10 +1022,10 @@ bool nRF5xSecurityManager::sm_handler(const ble_evt_t *evt)
10221022
);
10231023

10241024
advertising_peer_address_type_t
1025-
address_type(advertising_peer_address_type_t::PUBLIC_ADDRESS);
1025+
address_type(advertising_peer_address_type_t::PUBLIC);
10261026

10271027
if (pairing_cb->peer_id_key.id_addr_info.addr_type) {
1028-
address_type = advertising_peer_address_type_t::RANDOM_ADDRESS;
1028+
address_type = advertising_peer_address_type_t::RANDOM;
10291029
}
10301030

10311031
handler->on_keys_distributed_bdaddr(

0 commit comments

Comments
 (0)