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

Commit 6f889a09 authored by Scott James Remnant's avatar Scott James Remnant
Browse files

Use aosp/master version of f1f9fb99

Change-Id: I2ec22a47cb4a7e1a9d26f6cf7029214f6cd97a7e
parent c6344fef
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@ done:;
static bool stream_corrupted_during_le_scan_workaround(const uint8_t byte_read)
{
  if (!stream_corruption_detected && byte_read == HCI_BLE_EVENT) {
    LOG_ERROR("%s HCI stream corrupted (message type 0x3E)!", __func__);
    LOG_ERROR(LOG_TAG, "%s HCI stream corrupted (message type 0x3E)!", __func__);
    stream_corruption_detected = true;
    return true;
  }
@@ -202,13 +202,13 @@ static bool stream_corrupted_during_le_scan_workaround(const uint8_t byte_read)
  if (stream_corruption_detected) {
    if (stream_corruption_bytes_to_ignore == 0) {
      stream_corruption_bytes_to_ignore = byte_read;
      LOG_ERROR("%s About to skip %d bytes...", __func__, stream_corruption_bytes_to_ignore);
      LOG_ERROR(LOG_TAG, "%s About to skip %d bytes...", __func__, stream_corruption_bytes_to_ignore);
    } else {
      --stream_corruption_bytes_to_ignore;
    }

    if (stream_corruption_bytes_to_ignore == 0) {
      LOG_ERROR("%s Back to our regularly scheduled program...", __func__);
      LOG_ERROR(LOG_TAG, "%s Back to our regularly scheduled program...", __func__);
      stream_corruption_detected = false;
    }
    return true;