hci: fix build

This commit is contained in:
Matthias Ringwald 2024-01-17 12:16:22 +01:00
parent 64e2b019f2
commit 2b6efc4d0e

View File

@ -6702,9 +6702,8 @@ static bool hci_run_general_gap_le(void){
le_device_db_info(i, &peer_identity_addr_type, peer_identity_addreses, peer_irk);
if (peer_identity_addr_type == BD_ADDR_TYPE_UNKNOWN) continue;
if (btstack_is_null(peer_irk, 16)) continue;
const uint8_t *local_irk = gap_get_persistent_irk();
local_irk = gap_get_persistent_irk();
// command uses format specifier 'P' that stores 16-byte value without flip
uint8_t local_irk_flipped[16];
uint8_t peer_irk_flipped[16];
reverse_128(local_irk, local_irk_flipped);
reverse_128(peer_irk, peer_irk_flipped);