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

Commit dc8917d2 authored by Sarvesh Kalwit's avatar Sarvesh Kalwit
Browse files

system/btif/src: Update FAIL with more descriptive error codes

Replace instances of BT_STATUS_FAIL with more descriptive error codes
where appropriate.

Bug: 340296381
Test: m -j
Flag: Exempt, metrics-only change
Change-Id: Ic50d2971a0e80d336b4c0fc0dfe069ff452c2676
parent 5b5d86fc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1204,7 +1204,7 @@ static void btif_dm_auth_cmpl_evt(tBTA_DM_AUTH_CMPL* p_auth_cmpl) {
                                             pairing_cb.pin_code_len);
      } else {
        log::warn("bd_addr is empty");
        ret = BT_STATUS_FAIL;
        ret = BT_STATUS_PARM_INVALID;
      }
      ASSERTC(ret == BT_STATUS_SUCCESS, "storing link key failed", ret);
    } else {
@@ -1376,7 +1376,7 @@ static void btif_dm_auth_cmpl_evt(tBTA_DM_AUTH_CMPL* p_auth_cmpl) {
        break;

      default:
        status = BT_STATUS_FAIL;
        status = BT_STATUS_UNHANDLED;
    }
    /* Special Handling for HID Devices */
    if (check_cod_hid_major(bd_addr, COD_HID_POINTING)) {
@@ -3648,7 +3648,7 @@ static void btif_dm_ble_auth_cmpl_evt(tBTA_DM_AUTH_CMPL* p_auth_cmpl) {
        break;
      default:
        btif_dm_remove_ble_bonding_keys();
        status = BT_STATUS_FAIL;
        status = BT_STATUS_UNHANDLED;
        break;
    }
  }