BLE: Fix GAP privacy related signatures.

pull/6932/head
Vincent Coubard 2018-04-12 11:04:44 +01:00
parent 2811e00868
commit 90c85955ad
2 changed files with 8 additions and 6 deletions

View File

@ -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;
} }

View File

@ -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) {