Skip to content

Commit 3a632a3

Browse files
committed
BLE: Check if the resolving list item is populated instead of IRK validity
1 parent 1daee23 commit 3a632a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connectivity/FEATURE_BLE/source/generic/PrivateAddressController.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ struct PrivateAddressController::PrivacyResolveAddress final :
455455

456456
bool execute(PrivateAddressController& self) final
457457
{
458-
if (self._resolving_list[resolving_list_index].peer_irk == irk_t{}) {
458+
if (!self._resolving_list[resolving_list_index].populated) {
459459
// no entry at index 0, move to the next
460460
return start_next_resolution_round(self);
461461
} else {
@@ -494,7 +494,7 @@ struct PrivateAddressController::PrivacyResolveAddress final :
494494
notify_completion(self, peer_address,false,nullptr);
495495
return true;
496496
}
497-
} while (self._resolving_list[resolving_list_index].peer_irk != irk_t{});
497+
} while (!self._resolving_list[resolving_list_index].populated);
498498

499499
start_resolution(self);
500500
return false;

0 commit comments

Comments
 (0)