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

Commit 0baadfef authored by Chris Manton's avatar Chris Manton
Browse files

stack::rnr Use interface to set/get rnr callbacks

Bug: 350226852
Test: m .
Flag: EXEMPT, Mechanical Refactor

Change-Id: I6f495076176291b141810bcd22c76ebba49d2565
parent 60ee4e76
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1993,7 +1993,7 @@ void BTIF_dm_enable() {
  BTA_DmBleConfigLocalPrivacy(ble_privacy_enabled);

  if (com::android::bluetooth::flags::separate_service_and_device_discovery()) {
    BTM_SecAddRmtNameNotifyCallback(btif_on_name_read_from_btm);
    get_security_client_interface().BTM_SecAddRmtNameNotifyCallback(btif_on_name_read_from_btm);
  }

  /* for each of the enabled services in the mask, trigger the profile
@@ -2021,7 +2021,7 @@ void BTIF_dm_enable() {

void BTIF_dm_disable() {
  if (com::android::bluetooth::flags::separate_service_and_device_discovery()) {
    BTM_SecDeleteRmtNameNotifyCallback(&btif_on_name_read_from_btm);
    get_security_client_interface().BTM_SecDeleteRmtNameNotifyCallback(&btif_on_name_read_from_btm);
  }

  /* for each of the enabled services in the mask, trigger the profile