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

Commit ade917f9 authored by Dorin Drimus's avatar Dorin Drimus
Browse files

Check privacy is configured before doing btm_ble_resolving_list_init

Bug: 209364240
Test: manual, ADT3 is not stuck in a loop anymore, pairing and remotes work
Change-Id: Iec316cefabf368dcc9e9b77a906d928e194464f6
parent 26edcd97
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -621,7 +621,9 @@ static void btm_ble_vendor_capability_vsc_cmpl_cback(
  if (btm_cb.cmn_ble_vsc_cb.max_filter > 0) btm_ble_adv_filter_init();

  /* VS capability included and non-4.2 device */
  if (btm_cb.cmn_ble_vsc_cb.max_irk_list_sz > 0 &&
  if (controller_get_interface()->supports_ble() && 
      controller_get_interface()->supports_ble_privacy() &&
      btm_cb.cmn_ble_vsc_cb.max_irk_list_sz > 0 &&
      controller_get_interface()->get_ble_resolving_list_max_size() == 0)
    btm_ble_resolving_list_init(btm_cb.cmn_ble_vsc_cb.max_irk_list_sz);