Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Sources/BluetoothLinux/L2CAP/L2CAPSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ public struct L2CAPSocket: Sendable {
let destinationSocketAddress = L2CAPSocketAddress(
address: destinationAddress,
addressType: AddressType(lowEnergy: destinationAddressType),
protocolServiceMultiplexer: .att,
// LE ATT connects over the fixed channel with no PSM;
// the kernel rejects an address with both l2_psm and l2_cid set (EINVAL)
protocolServiceMultiplexer: nil,
channel: .att
)
let fileDescriptor = try SocketDescriptor.l2cap(localSocketAddress, [.closeOnExec, .nonBlocking])
Expand Down
Loading