OSDN Git Service

Reduce persistence on aquiring master role
authorMattias Agren <magren@broadcom.com>
Wed, 14 Oct 2015 15:05:58 +0000 (17:05 +0200)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 23 Oct 2015 23:33:48 +0000 (16:33 -0700)
commit59d9673187a50c259b42e5a71482304ab850a809
tree92475dc59081f62031210f5a594e909435db14ac
parentdeb1c7c5cfacba8ec2d896f6bb120bdc81314d9a
Reduce persistence on aquiring master role

Whenever a device has more than 1 ACL link active and transferring
data on one of its links via PAN, HH or JV (RFCOMM) the sys busy/idle
state toggles frequently. To avoid triggering role switches for each
of these events we filter this out and let the other SYS events handle
it in combination with other role policy management code. Ideally we
should revert the toggling to properly reflect the busy/idle state of
each profile but to limit risk of side effects at this stage we will
make this intermittent change.

This also affects audio streaming in certain cases.

Bug: 2457095925129209
Change-Id: I141e17ee069c82624e153fd8de5db90ae93724b9
bta/dm/bta_dm_act.c