mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Fix GAP privacy related signatures.
parent
2811e00868
commit
90c85955ad
|
@ -2186,7 +2186,7 @@ public:
|
||||||
* @return BLE_ERROR_NONE in case of success or an appropriate error code.
|
* @return BLE_ERROR_NONE in case of success or an appropriate error code.
|
||||||
*/
|
*/
|
||||||
virtual ble_error_t setPeripheralPrivacyConfiguration(
|
virtual ble_error_t setPeripheralPrivacyConfiguration(
|
||||||
const PeripheralPrivacyConfiguration_t &configuration
|
const PeripheralPrivacyConfiguration_t *configuration
|
||||||
) {
|
) {
|
||||||
return BLE_ERROR_NOT_IMPLEMENTED;
|
return BLE_ERROR_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
@ -2200,7 +2200,7 @@ public:
|
||||||
* @return BLE_ERROR_NONE in case of success or an appropriate error code.
|
* @return BLE_ERROR_NONE in case of success or an appropriate error code.
|
||||||
*/
|
*/
|
||||||
virtual ble_error_t getPeripheralPrivacyConfiguration(
|
virtual ble_error_t getPeripheralPrivacyConfiguration(
|
||||||
PeripheralPrivacyConfiguration_t &configuration
|
PeripheralPrivacyConfiguration_t *configuration
|
||||||
) {
|
) {
|
||||||
return BLE_ERROR_NOT_IMPLEMENTED;
|
return BLE_ERROR_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
@ -2213,7 +2213,7 @@ public:
|
||||||
* @return BLE_ERROR_NONE in case of success or an appropriate error code.
|
* @return BLE_ERROR_NONE in case of success or an appropriate error code.
|
||||||
*/
|
*/
|
||||||
virtual ble_error_t setCentralPrivacyConfiguration(
|
virtual ble_error_t setCentralPrivacyConfiguration(
|
||||||
const CentralPrivacyConfiguration_t &configuration
|
const CentralPrivacyConfiguration_t *configuration
|
||||||
) {
|
) {
|
||||||
return BLE_ERROR_NOT_IMPLEMENTED;
|
return BLE_ERROR_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
@ -2227,7 +2227,7 @@ public:
|
||||||
* @return BLE_ERROR_NONE in case of success or an appropriate error code.
|
* @return BLE_ERROR_NONE in case of success or an appropriate error code.
|
||||||
*/
|
*/
|
||||||
virtual ble_error_t getCentralPrivacyConfiguration(
|
virtual ble_error_t getCentralPrivacyConfiguration(
|
||||||
CentralPrivacyConfiguration_t &configuration
|
CentralPrivacyConfiguration_t *configuration
|
||||||
) {
|
) {
|
||||||
return BLE_ERROR_NOT_IMPLEMENTED;
|
return BLE_ERROR_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,8 +16,10 @@
|
||||||
|
|
||||||
#include "ble/Gap.h"
|
#include "ble/Gap.h"
|
||||||
|
|
||||||
ble_error_t Gap::getRandomAddressType(BLEProtocol::AddressBytes_t address, RandomAddressType_t& type)
|
ble_error_t Gap::getRandomAddressType(
|
||||||
{
|
BLEProtocol::AddressBytes_t address,
|
||||||
|
RandomAddressType_t* type
|
||||||
|
) {
|
||||||
// see section Device address in Bluetooth Link Layer specification
|
// see section Device address in Bluetooth Link Layer specification
|
||||||
// (Vol 6 - Part B)
|
// (Vol 6 - Part B)
|
||||||
switch (address[5] >> 6) {
|
switch (address[5] >> 6) {
|
||||||
|
|
Loading…
Reference in New Issue