From ab6821aab86610fc471ac91af92478cf4bf733b3 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Tue, 17 Apr 2018 14:06:47 +0100 Subject: [PATCH] BLE: Add a flag indicating if irk is stored in the distribution flags. --- features/FEATURE_BLE/ble/pal/SecurityDb.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/ble/pal/SecurityDb.h b/features/FEATURE_BLE/ble/pal/SecurityDb.h index 2de7734546..023fd0bcac 100644 --- a/features/FEATURE_BLE/ble/pal/SecurityDb.h +++ b/features/FEATURE_BLE/ble/pal/SecurityDb.h @@ -39,7 +39,8 @@ struct SecurityDistributionFlags_t { csrk_mitm_protected(false), ltk_stored(false), ltk_mitm_protected(false), - secure_connections_paired(false) { + secure_connections_paired(false), + irk_stored(false) { } /** peer address */ @@ -60,6 +61,8 @@ struct SecurityDistributionFlags_t { uint8_t ltk_mitm_protected:1; /** the current pairing was done using Secure Connections */ uint8_t secure_connections_paired:1; + /** the security entry has been distributed and stored */ + uint8_t irk_stored:1; }; /** Long Term Key and data used to identify it */