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

Commit d397e017 authored by Chris Manton's avatar Chris Manton
Browse files

Remove unused stack/btm/btm_sec::APPL_AUTH_WRITE_EXCEPTION

Bug: 164357702
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Id06bdf72bfcb6e640c709d796254a918a4e7557a
parent b5784a98
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -49,10 +49,6 @@

#define BTM_SEC_MAX_COLLISION_DELAY (5000)

#ifdef APPL_AUTH_WRITE_EXCEPTION
bool(APPL_AUTH_WRITE_EXCEPTION)(const RawAddress& bd_addr);
#endif

extern void btm_ble_advertiser_notify_terminated_legacy(
    uint8_t status, uint16_t connection_handle);
extern void bta_dm_remove_device(const RawAddress& bd_addr);
@@ -735,9 +731,6 @@ void BTM_PINCodeReply(const RawAddress& bd_addr, uint8_t res, uint8_t pin_len,
    memcpy(btm_cb.pin_code, p_pin, pin_len);

    btm_cb.security_mode_changed = true;
#ifdef APPL_AUTH_WRITE_EXCEPTION
    if (!(APPL_AUTH_WRITE_EXCEPTION)(p_dev_rec->bd_addr))
#endif
      btsnd_hcic_write_auth_enable(true);

    acl_set_disconnect_reason(0xff);
@@ -5202,9 +5195,6 @@ static bool btm_sec_check_prefetch_pin(tBTM_SEC_DEV_REC* p_dev_rec) {

    if (!btm_cb.security_mode_changed) {
      btm_cb.security_mode_changed = true;
#ifdef APPL_AUTH_WRITE_EXCEPTION
      if (!(APPL_AUTH_WRITE_EXCEPTION)(p_dev_rec->bd_addr))
#endif
        btsnd_hcic_write_auth_enable(true);
    }
  } else {