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

Commit 9d0ae7e2 authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Android (Google) Code Review
Browse files

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

parents 7296187f 4e8977b9
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 */