OSDN Git Service

Remove IRK entry from controller when LE device is unpaired
authorNitin Arora <niarora@codeaurora.org>
Wed, 30 Jul 2014 23:41:06 +0000 (16:41 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 15 Aug 2014 23:51:10 +0000 (16:51 -0700)
Change-Id: I04f3087a4fb3d715fafcfa91510a48b78d49f27f

stack/btm/btm_dev.c

index 9c0fd70..82c8618 100644 (file)
@@ -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 */