bonding duplication bug fix

This patch corrects a problem where the bonding table would add a duplicate entry for a device that uses private resolvable addressing.
This commit is contained in:
James Devine 2016-02-23 00:15:41 +00:00
parent 762c85be56
commit 94c31c8dd2
1 changed files with 32 additions and 32 deletions

View File

@ -2599,7 +2599,7 @@ void dm_ble_evt_handler(ble_evt_t * p_ble_evt)
{
if (m_irk_index_table[p_ble_evt->evt.gap_evt.params.connected.irk_match_idx] != DM_INVALID_ID)
{
device_index = m_irk_index_table[p_ble_evt->evt.gap_evt.params.connected.irk_match_idx];
device_index = im_peer_id_get_by_irk_match_idx(p_ble_evt->evt.gap_evt.params.connected.irk_match_idx);
err_code = NRF_SUCCESS;
}
}