OSDN Git Service

Track TX empty event to manage sniff timer
authorSrinu Jella <sjella@codeaurora.org>
Tue, 16 Feb 2016 14:52:16 +0000 (20:22 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 4 Mar 2016 18:42:55 +0000 (10:42 -0800)
commit4e972d8c24ecfb808757ef5c81eb3877ebc93027
tree0816e5c14341db86d78fe3d1a16c46efa99ab5bb
parentf6dcf79f62880e716e127b19c70ea328e07c6051
Track TX empty event to manage sniff timer

Use case:
OPP TX while inquiry is in progress.

Steps:
1. Send any file from DUT to remote using BT.
2. Accept file on remote.
3. During file transfer, start inquiry on DUT and
   observe behaviour.

Failure:
DUT sends sniff command in the middle of the transfer
though it is not required. eventually OPP Tx over
L2CAP file transfer fail.

Root Cause:
As per the current implementation, for tx it will
immediately starts idle timer without checking
for the completion status of tx.

Fix:
Handled the tx complete event from L2CAP properly
to start the idle timer to manage the sniff properly.

Change-Id: I298075590042e82a2f33837f6df6af0b2fd8179a
bta/jv/bta_jv_act.c
stack/gap/gap_conn.c
stack/include/gap_api.h