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

Commit 4ce45dea authored by Brian Delwiche's avatar Brian Delwiche
Browse files

Add local to pan_api.cc

Bug: 233604485
Test: Manual, connected BT and played audio
Tag: #security
Ignore-AOSP-First: Security
Change-Id: Ibb7fffccde731ecb7c12b8ddf212f02f156ffd89
parent a1945569
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -541,6 +541,7 @@ tPAN_RESULT PAN_WriteBuf(uint16_t handle, const RawAddress& dst,
    return PAN_FAILURE;
  }

  uint16_t len = p_buf->len;
  result = BNEP_WriteBuf(pcb->handle, dst, p_buf, protocol, &src, ext);
  if (result == BNEP_IGNORE_CMD) {
    PAN_TRACE_DEBUG("PAN ignored data buf write to PANU");
@@ -552,7 +553,7 @@ tPAN_RESULT PAN_WriteBuf(uint16_t handle, const RawAddress& dst,
    return (tPAN_RESULT)result;
  }

  pcb->write.octets += p_buf->len;
  pcb->write.octets += len;
  pcb->write.packets++;

  PAN_TRACE_DEBUG("PAN successfully sent data buf to the PANU");