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

Commit 721d8e00 authored by Hemant Gupta's avatar Hemant Gupta Committed by Zhihai Xu
Browse files

GAP: Return BTM_CMD_STARTED from btm_sec_l2cap_access_req

Return BTM_CMD_STARTED from btm_sec_l2cap_access_req when
remote device link is neither authenticated or encrypted so as
to send L2CAP Peer connect response with status auth pending.
This lets remote device extend the waiting time. This fixes IOT
issues with HP laptop EliteBook 8440p/8460p where pairing was
not possible.

Change-Id: I6cf6a72640de938a8145b541d4bad1bcba758ac5
parent b71b65fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2492,7 +2492,7 @@ tBTM_STATUS btm_sec_l2cap_access_req (BD_ADDR bd_addr, UINT16 psm, UINT16 handle
            p_dev_rec->sec_state         = BTM_SEC_STATE_DELAY_FOR_ENC;
            (*p_callback) (bd_addr, transport, p_ref_data, rc);

            return(BTM_SUCCESS);
            return(BTM_CMD_STARTED);
        }
    }