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

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

Bluetooth-OPP: 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.

CRs-fixed: 924659
Change-Id: I3a1b4e6b486092575b707e6e6c5fd61e988bbca9
parent 30d5c5d1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -86,8 +86,9 @@ public class OolConnManager {

    public static void saveOppSdpRecord(SdpOppOpsRecord sdpRec, BluetoothDevice btDevice) {

        Log.v(TAG,"saveOppSdpRecord"+ btDevice.getAddress());
        if ((mAddress != null) && mAddress.equalsIgnoreCase(btDevice.getAddress())) {
        Log.i(TAG, "saveOppSdpRecord" + btDevice.getAddress() + " sdpRec:" + sdpRec);
        if (sdpRec != null && (mAddress != null) && mAddress.
                equalsIgnoreCase(btDevice.getAddress())) {
           channel = sdpRec.getL2capPsm();
           sdpDone = true;
           Log.d(TAG,"saveOppSdpRecord channel "+ channel);
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,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