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

Commit 8b1686ef authored by Jakub Rotkiewicz's avatar Jakub Rotkiewicz
Browse files

Revert "BQR: Log error instead of crash if event too short"

Bug: 293849013
Test: m libbtif-core
Test: manual - check BQR event logs

This reverts commit f809cb86.

Change-Id: I7f572aabb7f201d7e7ca84a082346cc0886959c7
parent 818bd8ce
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ std::unique_ptr<BluetoothQualityReportInterface> bluetoothQualityReportInstance;
void BqrVseSubEvt::ParseBqrLinkQualityEvt(uint8_t length,
                                          const uint8_t* p_param_buf) {
  if (length < kLinkQualityParamTotalLen) {
    LOG(ERROR) << __func__
    LOG(FATAL) << __func__
               << ": Parameter total length: " << std::to_string(length)
               << " is abnormal. It shall be not shorter than: "
               << std::to_string(kLinkQualityParamTotalLen);
@@ -505,7 +505,7 @@ void CategorizeBqrEvent(uint8_t length, const uint8_t* p_bqr_event) {
    case QUALITY_REPORT_ID_LE_AUDIO_CHOPPY:
    case QUALITY_REPORT_ID_CONNECT_FAIL:
      if (length < kLinkQualityParamTotalLen) {
        LOG(ERROR) << __func__
        LOG(FATAL) << __func__
                   << ": Parameter total length: " << std::to_string(length)
                   << " is abnormal. It shall be not shorter than: "
                   << std::to_string(kLinkQualityParamTotalLen);