Loading obex/javax/obex/ClientSession.java +3 −2 Original line number Diff line number Diff line Loading @@ -457,8 +457,9 @@ public final class ClientSession extends ObexSession { maxPacketSize = (mInput.read() << 8) + mInput.read(); //check with local max size if (setMTU) { maxPacketSize = ObexHelper.A2DP_SCO_OBEX_MAX_CLIENT_PACKET_SIZE; if (setMTU && maxPacketSize > ObexHelper.A2DP_OBEX_MAX_CLIENT_PACKET_SIZE) { maxPacketSize = ObexHelper.A2DP_OBEX_MAX_CLIENT_PACKET_SIZE; setMTU = false; } else if (maxPacketSize > ObexHelper.MAX_CLIENT_PACKET_SIZE) { maxPacketSize = ObexHelper.MAX_CLIENT_PACKET_SIZE; } Loading obex/javax/obex/ObexHelper.java +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ public final class ObexHelper { * TODO: Should be removed as soon as Microsoft updates their driver. */ public static final int MAX_CLIENT_PACKET_SIZE = 0xFC00; public static final int A2DP_SCO_OBEX_MAX_CLIENT_PACKET_SIZE = 0x2000; public static final int A2DP_OBEX_MAX_CLIENT_PACKET_SIZE = 0x2000; public static final int OBEX_OPCODE_CONNECT = 0x80; Loading Loading
obex/javax/obex/ClientSession.java +3 −2 Original line number Diff line number Diff line Loading @@ -457,8 +457,9 @@ public final class ClientSession extends ObexSession { maxPacketSize = (mInput.read() << 8) + mInput.read(); //check with local max size if (setMTU) { maxPacketSize = ObexHelper.A2DP_SCO_OBEX_MAX_CLIENT_PACKET_SIZE; if (setMTU && maxPacketSize > ObexHelper.A2DP_OBEX_MAX_CLIENT_PACKET_SIZE) { maxPacketSize = ObexHelper.A2DP_OBEX_MAX_CLIENT_PACKET_SIZE; setMTU = false; } else if (maxPacketSize > ObexHelper.MAX_CLIENT_PACKET_SIZE) { maxPacketSize = ObexHelper.MAX_CLIENT_PACKET_SIZE; } Loading
obex/javax/obex/ObexHelper.java +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ public final class ObexHelper { * TODO: Should be removed as soon as Microsoft updates their driver. */ public static final int MAX_CLIENT_PACKET_SIZE = 0xFC00; public static final int A2DP_SCO_OBEX_MAX_CLIENT_PACKET_SIZE = 0x2000; public static final int A2DP_OBEX_MAX_CLIENT_PACKET_SIZE = 0x2000; public static final int OBEX_OPCODE_CONNECT = 0x80; Loading