OSDN Git Service

Allow framework to compile with BTM_IO_CAP_NONE
authorPulkit Bhuwalka <pulkitb@google.com>
Wed, 1 Mar 2017 00:11:34 +0000 (16:11 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 1 Mar 2017 18:48:19 +0000 (18:48 +0000)
commiteb1ad1d47b84767d9af180243cb14ac409331a0d
tree0a5dfa74e5fba6e70661b25e1f3be23b385bc480
parent435dbce2fe1254aa971344772270c4287f04f6a8
Allow framework to compile with BTM_IO_CAP_NONE

Using BTM_IO_CAP_NONE currently causes compilation to fail since
bta_dm_sp_cback ends up unused out a previous #ifdef that only kicks
in if BTM_IO_CAP_NONE is not set. Plugging the entire function into
a #ifdef so consistency is maintained and the framework can compile.

Bug: 35257446
Test: Built locally and run on device. Pairing without display using
JustWorks works.

Change-Id: Ibd7af6454253ccd731ff79602f327a52b8fe585b
bta/dm/bta_dm_act.cc