From 2d5c3f2261c2f34023c8acfad30c9999e29131f2 Mon Sep 17 00:00:00 2001 From: Nitin Arora Date: Wed, 30 Jul 2014 16:41:06 -0700 Subject: [PATCH] Remove IRK entry from controller when LE device is unpaired Change-Id: I04f3087a4fb3d715fafcfa91510a48b78d49f27f --- stack/btm/btm_dev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stack/btm/btm_dev.c b/stack/btm/btm_dev.c index 9c0fd7012..82c86183d 100644 --- a/stack/btm/btm_dev.c +++ b/stack/btm/btm_dev.c @@ -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 */ -- 2.11.0