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

Commit 301b6036 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

BTM_Sec: AUTHENTICATE should imply MITM

Test: cert/run
Tag: #gd-refactor
Bug: 141555841
Change-Id: If492a5bfe2a3945ebf3f1d1a55c0a0f395b5f83b
parent 518b34c4
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1820,6 +1820,13 @@ tBTM_STATUS btm_sec_mx_access_request(const RawAddress& bd_addr,
    }
  }

  if (security_required & BTM_SEC_OUT_AUTHENTICATE) {
    security_required |= BTM_SEC_OUT_MITM;
  }
  if (security_required & BTM_SEC_IN_AUTHENTICATE) {
    security_required |= BTM_SEC_IN_MITM;
  }

  p_dev_rec->required_security_flags_for_pairing = security_required;
  p_dev_rec->security_required = security_required;