Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c03db72 authored by Chris Manton's avatar Chris Manton Committed by android-build-merger
Browse files

Merge "Add support for le privacy"

am: 8bf96901

Change-Id: I69e2dc8fd89f6572cb20826d6035b51c2bf7b961
parents 362f5423 8bf96901
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@

#include <base/callback.h>

#include "device/include/controller.h"
#include "main/shim/btm.h"
#include "main/shim/btm_api.h"
#include "osi/include/log.h"
@@ -714,3 +715,7 @@ void bluetooth::shim::BTM_BleEnableDisableFilterFeature(
uint8_t bluetooth::shim::BTM_BleMaxMultiAdvInstanceCount() {
  return shim_btm.GetNumberOfAdvertisingInstances();
}

bool bluetooth::shim::BTM_BleLocalPrivacyEnabled(void) {
  return controller_get_interface()->supports_ble_privacy();
}
+3 −0
Original line number Diff line number Diff line
@@ -711,6 +711,9 @@ extern uint8_t BTM_BleMaxMultiAdvInstanceCount(void) {
 ******************************************************************************/
bool BTM_BleLocalPrivacyEnabled(void) {
#if (BLE_PRIVACY_SPT == TRUE)
  if (bluetooth::shim::is_gd_shim_enabled()) {
    return bluetooth::shim::BTM_BleLocalPrivacyEnabled();
  }
  return (btm_cb.ble_ctr_cb.privacy_mode != BTM_PRIVACY_NONE);
#else
  return false;