From 3a632a3685adb004d071c91c2597675ebab8fa61 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Wed, 23 Sep 2020 11:03:25 +0100 Subject: [PATCH] BLE: Check if the resolving list item is populated instead of IRK validity --- .../FEATURE_BLE/source/generic/PrivateAddressController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connectivity/FEATURE_BLE/source/generic/PrivateAddressController.cpp b/connectivity/FEATURE_BLE/source/generic/PrivateAddressController.cpp index 9c8057d819..d7ef1719b7 100644 --- a/connectivity/FEATURE_BLE/source/generic/PrivateAddressController.cpp +++ b/connectivity/FEATURE_BLE/source/generic/PrivateAddressController.cpp @@ -455,7 +455,7 @@ struct PrivateAddressController::PrivacyResolveAddress final : bool execute(PrivateAddressController& self) final { - if (self._resolving_list[resolving_list_index].peer_irk == irk_t{}) { + if (!self._resolving_list[resolving_list_index].populated) { // no entry at index 0, move to the next return start_next_resolution_round(self); } else { @@ -494,7 +494,7 @@ private: notify_completion(self, peer_address,false,nullptr); return true; } - } while (self._resolving_list[resolving_list_index].peer_irk != irk_t{}); + } while (!self._resolving_list[resolving_list_index].populated); start_resolution(self); return false;