OSDN Git Service

Check BR device count before initiating role switch
authorNitin Shivpure <nshivpur@codeaurora.org>
Wed, 12 Aug 2015 12:45:11 +0000 (18:15 +0530)
committerScott James Remnant <keybuk@google.com>
Mon, 19 Oct 2015 17:36:17 +0000 (10:36 -0700)
commit7f2eed693f328843ed912144ed6ffcab0f2e3e75
tree75a11b32f2acc02e4183d1cbbfac32cac9f6bbfe
parent642f233005cdcbbbcb92b77d6297fc080b7f072e
Check BR device count before initiating role switch

A case where DUT is acting as PANU device on BR/EDR link & also
acting as central on LE link. As LE link & PANU link need not to
be master & it's not a scatter-net scenario, because there is only
a BR link. So checking for BR device count before initiating role
switch to avoid continuous loop of role switches.

Cherry-picked from: https://partner-android-review.googlesource.com/#/c/376058/

Change-Id: I70e4041a71ba965f1f9e25729c3cfd20ae03d6b4
Bug: 23290136
bta/dm/bta_dm_act.c