int length = ((packet[1] & 0xff) | (packet[2] & 0xff) << 8) - 2;
L2CAPChannel channel = channels[channelHandel];
if (channel != null) {
byte[] l2capPacket = new byte[length];
System.arraycopy(packet, 5, l2capPacket, 0, l2capPacket.length);
channel.receiveL2CAPPacket(l2capPacket);
}
}
/**
* @see org.javabluetooth.stack.BluetoothStack#connectL2CAPChannel(org.javabluetooth.stack.l2cap.L2CAPChannel,