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

Commit 3728ca47 authored by Chris Manton's avatar Chris Manton
Browse files

Use proper stack/btm/btm_sec::btm_status_text

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I056a3fdc52a0b9f70f9da44a01f5ee0ebb897dc0
parent b1cc478a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -4798,11 +4798,11 @@ void btm_sec_set_peer_sec_caps(uint16_t hci_handle, bool ssp_supported,

  if (!(p_dev_rec->sec_flags & BTM_SEC_NAME_KNOWN) ||
      p_dev_rec->is_originator) {
    uint8_t status = btm_sec_execute_procedure(p_dev_rec);
    if (status != BTM_CMD_STARTED) {
    tBTM_STATUS btm_status = btm_sec_execute_procedure(p_dev_rec);
    if (btm_status != BTM_CMD_STARTED) {
      LOG_WARN("Security procedure not started! status:%s",
               hci_error_code_text(status).c_str());
      btm_sec_dev_rec_cback_event(p_dev_rec, status, false);
               btm_status_text(btm_status).c_str());
      btm_sec_dev_rec_cback_event(p_dev_rec, btm_status, false);
    }
  }