Loading system/stack/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -207,6 +207,7 @@ cc_library_static { shared_libs: [ "libcutils", "liblog", "libcrypto", ], required: [ "libldacBT_enc", Loading Loading @@ -365,6 +366,7 @@ cc_test { ], shared_libs: [ "libcutils", "libcrypto", ], static_libs: [ "liblog", Loading system/stack/smp/smp_api.cc +3 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ #include "bt_utils.h" #include "stack_config.h" #include "gd/os/log.h" #include "gd/os/rand.h" #include "hcimsgs.h" #include "l2c_api.h" #include "l2cdefs.h" Loading Loading @@ -565,6 +567,7 @@ void SMP_CrLocScOobData( const std::array<unsigned char, 16>&, const std::array<unsigned char, 16>&)> callback) { smp_cb.local_random = bluetooth::os::GenerateRandom<16>(); smp_cb.selected_association_model = SMP_MODEL_SEC_CONN_OOB; smp_calculate_local_commitment(&smp_cb); std::move(callback).Run(BT_TRANSPORT_LE, true, smp_cb.commitment, Loading Loading
system/stack/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -207,6 +207,7 @@ cc_library_static { shared_libs: [ "libcutils", "liblog", "libcrypto", ], required: [ "libldacBT_enc", Loading Loading @@ -365,6 +366,7 @@ cc_test { ], shared_libs: [ "libcutils", "libcrypto", ], static_libs: [ "liblog", Loading
system/stack/smp/smp_api.cc +3 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ #include "bt_utils.h" #include "stack_config.h" #include "gd/os/log.h" #include "gd/os/rand.h" #include "hcimsgs.h" #include "l2c_api.h" #include "l2cdefs.h" Loading Loading @@ -565,6 +567,7 @@ void SMP_CrLocScOobData( const std::array<unsigned char, 16>&, const std::array<unsigned char, 16>&)> callback) { smp_cb.local_random = bluetooth::os::GenerateRandom<16>(); smp_cb.selected_association_model = SMP_MODEL_SEC_CONN_OOB; smp_calculate_local_commitment(&smp_cb); std::move(callback).Run(BT_TRANSPORT_LE, true, smp_cb.commitment, Loading