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

Commit 66fbafba authored by Archie Pusaka's avatar Archie Pusaka Committed by Bhakthavatsala Raghavendra
Browse files

Update L2CAP socket comment

Bug: 372812515
Test: m -j
Flag: EXEMPT, comment update
Change-Id: Ib7869fd255108039b442fcfd4586e6a8a90de343
parent 6976c730
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -320,9 +320,11 @@ static l2cap_socket* btsock_l2cap_alloc_l(const char* name, const RawAddress* ad
    security |= BTM_SEC_IN_MIN_16_DIGIT_PIN;
  }

  // For Floss, set socket as SOCK_STREAM
  // TODO(b:271828292): Set SOCK_STREAM for everyone after verification tests
#if TARGET_FLOSS
  //Changed socket type to SOCK_STREAM to address a platform issue on FLOSS.
  //This is a workaround and not the recommended approach.
  //SOCK_SEQPACKET is preferred for L2CAP LE CoC channels because it preserves L2CAP
  //packet boundaries, ensuring message integrity.
  sock_type = SOCK_STREAM;
#endif
  if (socketpair(AF_LOCAL, sock_type, 0, fds)) {