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

Commit 336981d0 authored by Huirong Liao's avatar Huirong Liao
Browse files

Fix upper (framework) can not get RC's name or other properties

[Root Cause]
Some RC may send directed adv packet firstly with non-random address,
and no name info included, then upper can not get RC's name correctly.

[Solution]
Update device name property if the device name exists without check the address type.

Bug: 266249323
Test: ble scan successfully

Change-Id: I3938bfbc26b2b9261f947b051d5a41fc4f9796f9
parent 5a00b850
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ void bta_scan_results_cb_impl(RawAddress bd_addr, tBT_DEVICE_TYPE device_type,
        value, HCI_EIR_SHORTENED_LOCAL_NAME_TYPE, &remote_name_len);
  }

  if ((addr_type != BLE_ADDR_RANDOM) || (p_eir_remote_name)) {
  if (p_eir_remote_name) {
    if (!btif_address_cache_find(bd_addr)) {
      btif_address_cache_add(bd_addr, addr_type);

+1 −1
Original line number Diff line number Diff line
@@ -758,7 +758,7 @@ void BleScannerInterfaceImpl::handle_remote_properties(
  }

  // update device name
  if ((addr_type != BLE_ADDR_RANDOM) || (p_eir_remote_name)) {
  if (p_eir_remote_name) {
    if (!address_cache_.find(bd_addr)) {
      address_cache_.add(bd_addr);