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

Commit c9a18649 authored by Ray Kuo's avatar Ray Kuo Committed by android-build-merger
Browse files

Merge "BQR: Fix for the issue that Bluetooth keeps on crashing if the...

Merge "BQR: Fix for the issue that Bluetooth keeps on crashing if the controller firmware does not support the BQR feature."
am: 554a5626

Change-Id: Ieb9dfdb35d8740114c2a94e0453de6762ef4ecc9
parents b2e26a63 554a5626
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -243,8 +243,7 @@ void EnableBtQualityReport(bool is_enable) {

void BqrVscCompleteCallback(tBTM_VSC_CMPL* p_vsc_cmpl_params) {
  if (p_vsc_cmpl_params->param_len < 1) {
    LOG(FATAL) << __func__
               << ": The length of returned parameters is less than 1";
    LOG(ERROR) << __func__ << ": The length of returned parameters is less than 1";
    return;
  }

@@ -255,8 +254,7 @@ void BqrVscCompleteCallback(tBTM_VSC_CMPL* p_vsc_cmpl_params) {
  // Current_Quality_Event_Mask | 4 octets | Indicates current bit mask setting
  STREAM_TO_UINT8(status, p_event_param_buf);
  if (status != HCI_SUCCESS) {
    LOG(FATAL) << __func__
               << ": Fail to configure BQR. status: " << loghex(status);
    LOG(ERROR) << __func__ << ": Fail to configure BQR. status: " << loghex(status);
    return;
  }