BLE: Revert address type changes.

The changes made to BLEProtocol::AddressType was not entirelly backward compatible as BLEProtocol::AddressType split random addresses in three category while the type RANDOM is a superset of these types.
pull/6932/head
Vincent Coubard 2018-05-17 10:26:04 +01:00
parent b845a9dc95
commit e5d91932fd
2 changed files with 1 additions and 22 deletions

View File

@ -87,25 +87,7 @@ namespace BLEProtocol {
* on RANDOM instead. Use Gap::getRandomAddressType to retrieve the
* type of the random address.
*/
RANDOM_PRIVATE_NON_RESOLVABLE,
/**
* Random address.
*
* Use Gap::getRandomAddressType to retrieve the type of the random
* address.
*/
RANDOM,
/**
* A Public address used as a device identity address.
*/
PUBLIC_IDENTITY,
/**
* A Random static address used as a device identity address.
*/
RANDOM_STATIC_IDENTITY
RANDOM_PRIVATE_NON_RESOLVABLE
};
};

View File

@ -294,9 +294,6 @@ public:
*/
enum DeprecatedAddressType_t {
ADDR_TYPE_PUBLIC = BLEProtocol::AddressType::PUBLIC,
ADDR_TYPE_RANDOM = BLEProtocol::AddressType::RANDOM,
ADDR_TYPE_PUBLIC_IDENTITY = BLEProtocol::AddressType::PUBLIC_IDENTITY,
ADDR_TYPE_RANDOM_STATIC_IDENTITY = BLEProtocol::AddressType::RANDOM_STATIC_IDENTITY,
ADDR_TYPE_RANDOM_STATIC = BLEProtocol::AddressType::RANDOM_STATIC,
ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE = BLEProtocol::AddressType::RANDOM_PRIVATE_RESOLVABLE,
ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE = BLEProtocol::AddressType::RANDOM_PRIVATE_NON_RESOLVABLE