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

Skip to content
Commit 21271b21 authored by Ying Hsu's avatar Ying Hsu Committed by Poompatai Puntitpong
Browse files

floss: Fix empty peer name issue when RNR is skipped

Peer devices with BTM_SEC_NAME_KNOWN flag set have their
device names stored in sec_bd_name. If RNR is skipped
for this kind of device, bat_dm_search_cb.peer_name would
be empty and sec_bd_name shall be used instead.
Therefore, this patch uses bta_dm_get_remname() to fill up
the tBTA_DM_MSG in bta_dm_discover_device() and applies the
same indirection layer to similar situations for consistency.

Bug: 283178131
Tag: #floss
Test: Manual test - pairing with the problematic keyboard in the specific way problem was introduced
(cherry picked from https://android-review.googlesource.com/q/commit:fdeaf43e1508ba92d5455a636994b906a7b915db)
Merged-In: I7a297ff9a53ccbd6f3b9283e61ed208b000e6678
Change-Id: I7a297ff9a53ccbd6f3b9283e61ed208b000e6678
parent ad6b0811
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment