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

Commit b3f14888 authored by Jeff Deng's avatar Jeff Deng Committed by Android Git Automerger
Browse files

am bad2f799: Bluetooth: Restarting PM timer during incoming rfcomm data.

* commit 'bad2f799':
  Bluetooth: Restarting PM timer during incoming rfcomm data.
parents 8e5091eb bad2f799
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1984,14 +1984,18 @@ static int bta_jv_port_data_co_cback(UINT16 port_handle, UINT8 *buf, UINT16 len,
{
    tBTA_JV_RFC_CB  *p_cb = bta_jv_rfc_port_to_cb(port_handle);
    tBTA_JV_PCB     *p_pcb = bta_jv_rfc_port_to_pcb(port_handle);
    APPL_TRACE_DEBUG3("bta_jv_port_data_co_cback, p_cb:%p, p_pcb:%p, len:%d",
                        p_cb, p_pcb, len);
    int ret = 0;
    APPL_TRACE_DEBUG4("bta_jv_port_data_co_cback, p_cb:%p, p_pcb:%p, len:%d, type:%d",
                        p_cb, p_pcb, len, type);
    if (p_pcb != NULL)
    {
        switch(type)
        {
            case DATA_CO_CALLBACK_TYPE_INCOMING:
                return bta_co_rfc_data_incoming(p_pcb->user_data, (BT_HDR*)buf);
                bta_jv_pm_conn_busy(p_pcb->p_pm_cb);
                ret = bta_co_rfc_data_incoming(p_pcb->user_data, (BT_HDR*)buf);
                bta_jv_pm_conn_idle(p_pcb->p_pm_cb);
                return ret;
            case DATA_CO_CALLBACK_TYPE_OUTGOING_SIZE:
                return bta_co_rfc_data_outgoing_size(p_pcb->user_data, (int*)buf);
            case DATA_CO_CALLBACK_TYPE_OUTGOING: