mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Fix address name in NRF targets.
parent
66a9e635bd
commit
7b1e225012
|
|
@ -79,7 +79,7 @@ peer_address_type_t convert_nordic_address(uint8_t address) {
|
|||
}
|
||||
|
||||
peer_address_type_t convert_identity_address(advertising_peer_address_type_t address) {
|
||||
if (address == advertising_peer_address_type_t::PUBLIC_ADDRESS) {
|
||||
if (address == advertising_peer_address_type_t::PUBLIC) {
|
||||
return peer_address_type_t::PUBLIC_IDENTITY;
|
||||
} else {
|
||||
return peer_address_type_t::RANDOM_STATIC_IDENTITY;
|
||||
|
|
|
|||
|
|
@ -988,10 +988,10 @@ bool nRF5xSecurityManager::sm_handler(const ble_evt_t *evt)
|
|||
);
|
||||
|
||||
advertising_peer_address_type_t
|
||||
address_type(advertising_peer_address_type_t::PUBLIC_ADDRESS);
|
||||
address_type(advertising_peer_address_type_t::PUBLIC);
|
||||
|
||||
if (pairing_cb->peer_id_key.id_addr_info.addr_type) {
|
||||
address_type = advertising_peer_address_type_t::RANDOM_ADDRESS;
|
||||
address_type = advertising_peer_address_type_t::RANDOM;
|
||||
}
|
||||
|
||||
handler->on_keys_distributed_bdaddr(
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ public:
|
|||
struct resolving_list_entry_t {
|
||||
resolving_list_entry_t() :
|
||||
peer_identity_address_type(
|
||||
advertising_peer_address_type_t::PUBLIC_ADDRESS
|
||||
advertising_peer_address_type_t::PUBLIC
|
||||
)
|
||||
{ }
|
||||
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ peer_address_type_t convert_nordic_address(bool identity, uint8_t address) {
|
|||
}
|
||||
|
||||
peer_address_type_t convert_identity_address(advertising_peer_address_type_t address) {
|
||||
if (address == advertising_peer_address_type_t::PUBLIC_ADDRESS) {
|
||||
if (address == advertising_peer_address_type_t::PUBLIC) {
|
||||
return peer_address_type_t::PUBLIC_IDENTITY;
|
||||
} else {
|
||||
return peer_address_type_t::RANDOM_STATIC_IDENTITY;
|
||||
|
|
|
|||
|
|
@ -1022,10 +1022,10 @@ bool nRF5xSecurityManager::sm_handler(const ble_evt_t *evt)
|
|||
);
|
||||
|
||||
advertising_peer_address_type_t
|
||||
address_type(advertising_peer_address_type_t::PUBLIC_ADDRESS);
|
||||
address_type(advertising_peer_address_type_t::PUBLIC);
|
||||
|
||||
if (pairing_cb->peer_id_key.id_addr_info.addr_type) {
|
||||
address_type = advertising_peer_address_type_t::RANDOM_ADDRESS;
|
||||
address_type = advertising_peer_address_type_t::RANDOM;
|
||||
}
|
||||
|
||||
handler->on_keys_distributed_bdaddr(
|
||||
|
|
|
|||
Loading…
Reference in New Issue