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

Commit ba4ad49d authored by chaoyu.x.wu's avatar chaoyu.x.wu Committed by android-build-merger
Browse files

Fix the BLE connection failure with some mice

am: b9abcc1a

Change-Id: I45bdf4a316fca554c8c85cefdb87cff0cd2d21e6
parents 9cea4fdd b9abcc1a
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -1502,8 +1502,6 @@ void smp_pairing_cmpl(tSMP_CB *p_cb, tSMP_INT_DATA *p_data)
{
    if (p_cb->total_tx_unacked == 0)
    {
        /* update connection parameter to remote preferred */
        L2CA_EnableUpdateBleConnParams(p_cb->pairing_bda, TRUE);
        /* process the pairing complete */
        smp_proc_pairing_cmpl(p_cb);
    }
@@ -1542,8 +1540,11 @@ void smp_idle_terminate(tSMP_CB *p_cb, tSMP_INT_DATA *p_data)
*******************************************************************************/
void smp_fast_conn_param(tSMP_CB *p_cb, tSMP_INT_DATA *p_data)
{
    /* disable connection parameter update */
    L2CA_EnableUpdateBleConnParams(p_cb->pairing_bda, FALSE);
    /* Disable L2CAP connection parameter updates while bonding since
       some peripherals are not able to revert to fast connection parameters
       during the start of service discovery. Connection paramter updates
       get enabled again once service discovery completes. */
    L2CA_EnableUpdateBleConnParams(p_cb->pairing_bda, false);
}

/*******************************************************************************