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

Skip to content
Commit f7c0a042 authored by William Escande's avatar William Escande
Browse files

SDP: Set address in tBTM_REMOTE_DEV_NAME

The tBTM_REMOTE_DEV_NAME.bd_addr was never set but we do use it to
decide if we can remove the callback in bta_dm_remname_cback.
Without the fix we are triggering too many remote name request. They
will eventually conflict with each other and ends in the busy state.
At this point if the stack is performing a search, we could receive
delayed sdp_result that will end in a crash.

Repro steps:
 * Start a search on phone
 * Pair & connect from carkit
 * Crash should occur (1~4% repro).

Without any logs nor fix, crash is around 15%+ repro
With the fix, the 'crash situation' only appear around 1~2% and it no
longer crash
Crash situation as been identified to match with the following logs
    `BTM_ReadRemoteDeviceName is busy`

Bug: 231150390
Test: Execute repro step above
Ignore-AOSP-First: AOSP does not merge on tm-dev
Merged-In: I317f5d689a9efb85d997a38470712ed3d8e0c531
Change-Id: I317f5d689a9efb85d997a38470712ed3d8e0c531
parent 3d0f7c50
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