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

Commit ad25968b authored by Hui Peng's avatar Hui Peng
Browse files

Drop support for controllers non supporting SSP

Bug: 290786242
Test: mma packages/modules/Bluetooth
Change-Id: If5643391135584cb04e297519855d3ffd485db8d
parent 6ed74e04
Loading
Loading
Loading
Loading
+10 −12
Original line number Diff line number Diff line
@@ -2182,7 +2182,9 @@ void btm_sec_check_pending_reqs(void) {
 *
 ******************************************************************************/
void btm_sec_dev_reset(void) {
  if (controller_get_interface()->supports_simple_pairing()) {
  ASSERT_LOG(controller_get_interface()->supports_simple_pairing(),
             "only controllers with SSP is supported");

  /* set the default IO capabilities */
  btm_cb.devcb.loc_io_caps = btif_storage_get_local_io_caps();
  /* add mx service to use no security */
@@ -2190,10 +2192,6 @@ void btm_sec_dev_reset(void) {
                       BTM_SEC_NONE, BT_PSM_RFCOMM, BTM_SEC_PROTO_RFCOMM, 0);
  BTM_SetSecurityLevel(true, "RFC_MUX", BTM_SEC_SERVICE_RFC_MUX, BTM_SEC_NONE,
                       BT_PSM_RFCOMM, BTM_SEC_PROTO_RFCOMM, 0);
  } else {
    btm_cb.security_mode = BTM_SEC_MODE_SERVICE;
  }

  BTM_TRACE_DEBUG("btm_sec_dev_reset sec mode: %d", btm_cb.security_mode);
}