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

Commit 61324011 authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Android Git Automerger
Browse files

am 9d0ae7e2: Merge "Remove IRK entry from controller when LE device is unpaired" into lmp-dev

* commit '9d0ae7e2':
  Remove IRK entry from controller when LE device is unpaired
parents b31a5f8c 9d0ae7e2
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 */