Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e8977b9 authored by Nitin Arora's avatar Nitin Arora Committed by Andre Eisenbach
Browse files

Remove IRK entry from controller when LE device is unpaired

Change-Id: I04f3087a4fb3d715fafcfa91510a48b78d49f27f
parent 6fe74b8c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -35,6 +35,8 @@
#include "btm_int.h"
#include "hcidefs.h"
#include "l2c_api.h"
#include "vendor_ble.h"

static tBTM_SEC_DEV_REC *btm_find_oldest_dev (void);

/*******************************************************************************
@@ -182,6 +184,7 @@ BOOLEAN BTM_SecDeleteDevice (BD_ADDR bd_addr)
    if ((p_dev_rec = btm_find_dev (bd_addr)) == NULL)
        return(FALSE);

    btm_ble_vendor_irk_list_remove_dev(p_dev_rec);
    btm_sec_free_dev (p_dev_rec);

    /* Tell controller to get rid of the link key if it has one stored */