Skip to content

Commit 7c8a754

Browse files
committed
BLE: Remove set advertising timeout from SM pal
1 parent 0266738 commit 7c8a754

File tree

4 files changed

+4
-30
lines changed

4 files changed

+4
-30
lines changed

connectivity/FEATURE_BLE/source/cordio/source/PalSecurityManagerImpl.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -207,18 +207,6 @@ ble_error_t PalSecurityManager::encrypt_data(
207207
return BLE_ERROR_NOT_IMPLEMENTED;
208208
}
209209

210-
////////////////////////////////////////////////////////////////////////////
211-
// Privacy
212-
//
213-
214-
215-
ble_error_t PalSecurityManager::set_private_address_timeout(
216-
uint16_t timeout_in_seconds
217-
)
218-
{
219-
DmPrivSetResolvablePrivateAddrTimeout(timeout_in_seconds);
220-
return BLE_ERROR_NONE;
221-
}
222210

223211
////////////////////////////////////////////////////////////////////////////
224212
// Keys

connectivity/FEATURE_BLE/source/cordio/source/PalSecurityManagerImpl.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,6 @@ class PalSecurityManager final : public ble::PalSecurityManager {
174174
encryption_block_t &data
175175
) final;
176176

177-
////////////////////////////////////////////////////////////////////////////
178-
// Privacy
179-
//
180-
181-
/**
182-
* @see ::ble::PalSecurityManager::set_private_address_timeout
183-
*/
184-
ble_error_t set_private_address_timeout(uint16_t timeout_in_seconds) final;
185-
186177
////////////////////////////////////////////////////////////////////////////
187178
// Keys
188179
//

connectivity/FEATURE_BLE/source/generic/SecurityManagerImpl.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,10 @@ ble_error_t SecurityManager::getSigningKey(connection_handle_t connection, bool
743743
ble_error_t SecurityManager::setPrivateAddressTimeout(uint16_t timeout_in_seconds)
744744
{
745745
if (!_db) return BLE_ERROR_INITIALIZATION_INCOMPLETE;
746-
return _pal.set_private_address_timeout(timeout_in_seconds);
746+
_private_address_controller.set_timeout(
747+
resolvable_address_timeout_t(timeout_in_seconds)
748+
);
749+
return BLE_ERROR_NONE;
747750
}
748751

749752
////////////////////////////////////////////////////////////////////////////

connectivity/FEATURE_BLE/source/pal/PalSecurityManager.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -753,14 +753,6 @@ class PalSecurityManager {
753753
encryption_block_t &data
754754
) = 0;
755755

756-
////////////////////////////////////////////////////////////////////////////
757-
// Privacy
758-
//
759-
760-
virtual ble_error_t set_private_address_timeout(
761-
uint16_t timeout_in_seconds
762-
) = 0;
763-
764756
////////////////////////////////////////////////////////////////////////////
765757
// Keys
766758
//

0 commit comments

Comments
 (0)