OSDN Git Service

Fix merge error; duplicate BTM_SecClearSecurityFlags
authorAndre Eisenbach <eisenbach@google.com>
Thu, 20 Oct 2016 22:24:34 +0000 (15:24 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 20 Oct 2016 22:24:34 +0000 (15:24 -0700)
Test: compiles
Change-Id: Ifbe5b7e3a67690789dfa7d92e0c4235dddf193a6

stack/btm/btm_dev.cc

index efee46b..bb27685 100644 (file)
@@ -209,25 +209,6 @@ extern void BTM_SecClearSecurityFlags (BD_ADDR bd_addr)
 
 /*******************************************************************************
 **
-** Function         BTM_SecClearSecurityFlags
-**
-** Description      Reset the security flags (mark as not-paired) for a given
-**                  remove device.
-**
-*******************************************************************************/
-extern void BTM_SecClearSecurityFlags (BD_ADDR bd_addr)
-{
-    tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev(bd_addr);
-    if (p_dev_rec == NULL)
-        return;
-
-    p_dev_rec->sec_flags = 0;
-    p_dev_rec->sec_state = BTM_SEC_STATE_IDLE;
-    p_dev_rec->sm4 = BTM_SM4_UNKNOWN;
-}
-
-/*******************************************************************************
-**
 ** Function         BTM_SecReadDevName
 **
 ** Description      Looks for the device name in the security database for the