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

Commit 8bf96901 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add support for le privacy"

parents 7b33d524 f52d3005
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;