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

Commit c3a9c6ba authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi
Browse files

floss: Don't call delete stored link key

Write and Delete Stored Link Key aren't useful anymore with modern
controllers since we no longer store link keys for boot mode. For now,
ifdef them away for Floss.

Bug: 250493092
Test: Manually verified with classic pairing
Tag: #floss
Change-Id: I89f3ff58145fd8851328f85a2499fbd4f40f4aae
parent 7a30c68e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -689,6 +689,11 @@ tBTM_STATUS BTM_EnableTestMode(void) {
 ******************************************************************************/
tBTM_STATUS BTM_DeleteStoredLinkKey(const RawAddress* bd_addr,
                                    tBTM_CMPL_CB* p_cb) {
  /* Read and Write STORED link key stems from a legacy use-case and is no
   * longer expected to be used. Disable explicitly for Floss and queue overall
   * deletion from Fluoride.
   */
#if !defined(TARGET_FLOSS)
  /* Check if the previous command is completed */
  if (btm_cb.devcb.p_stored_link_key_cmpl_cb) return (BTM_BUSY);

@@ -706,6 +711,7 @@ tBTM_STATUS BTM_DeleteStoredLinkKey(const RawAddress* bd_addr,
  } else {
    btsnd_hcic_delete_stored_key(*bd_addr, delete_all_flag);
  }
#endif

  return (BTM_SUCCESS);
}