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

Commit 53dc2466 authored by Sravan Kumar V's avatar Sravan Kumar V Committed by Gerrit - the friendly Code Review server
Browse files

Bluetooth: Increase sdp search time out value

Add change to increase sdp search timeout value to handle scenarios
where sdp search take long time, and causing OPP obex over l2cap failure.

Change-Id: I3a1b4e6b486092575b707e6e6c5fd61e988bbca9
parent da174748
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -54,15 +54,16 @@ public class OolConnManager {

    public static void setSdpInitiatedAddress(BluetoothDevice remBtDev) {

        Log.d(TAG,"setSdpInitiatedAddress "+ mAddress);
        mAddress = remBtDev.getAddress();
        Log.d(TAG,"setSdpInitiatedAddress "+ mAddress);

    }

    public static int getL2cPSM(BluetoothDevice remBtDev) {

        int waitCount = 0;
        int channelNo = -1;
        while(!sdpDone && waitCount < 8) {
        while(!sdpDone && waitCount < 20) {
           try {
               Thread.sleep(500);
           } catch (InterruptedException e) {
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ public class SdpManager {
    static Object mTrackerLock = new Object();

    /* The timeout to wait for reply from native. Should never fire. */
    private static final int SDP_INTENT_DELAY = 6000;
    private static final int SDP_INTENT_DELAY = 11000;
    private static final int MESSAGE_SDP_INTENT = 2;

    // We need a reference to the adapter service, to be able to send intents