From b2c46a45410d6ecfa2b6df57fb81ee4b192e5455 Mon Sep 17 00:00:00 2001 From: Hemant Gupta Date: Thu, 27 Aug 2015 10:48:07 +0530 Subject: [PATCH] Fix RFCOMM Rx speed of transfer Use Case: 1. OPP Rx use case on the DUT Side 2. Transfer 10Mb+ of file from remote to DUT 3. Observe speeds over RFCOMM (expected 1.5Mbps+) Failure: Actual speeds lesser than 1.5Mbps Root Cause: Rx bottlenecks seen due to frequent timer operation during incoming data on RFCOMM Fix: BUSY and IDLE states of BT Power manager are already handled inside the stack and no need to explicitly set IDLE and BUSY states from JV layer anymore. Bug: 22487461 Change-Id: Icdc25c52103d6a849cc6e12656d9c69f5e152b05 --- bta/jv/bta_jv_act.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bta/jv/bta_jv_act.c b/bta/jv/bta_jv_act.c index c326e039f..e5664ce0d 100644 --- a/bta/jv/bta_jv_act.c +++ b/bta/jv/bta_jv_act.c @@ -1432,17 +1432,13 @@ 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); - int ret = 0; APPL_TRACE_DEBUG("%s, p_cb:%p, p_pcb:%p, len:%d, type:%d", __func__, p_cb, p_pcb, len, type); if (p_pcb != NULL) { switch(type) { case DATA_CO_CALLBACK_TYPE_INCOMING: - 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; + return bta_co_rfc_data_incoming(p_pcb->user_data, (BT_HDR*)buf); 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: -- 2.11.0