Save the AVDTP version after SDP discovery and read it on reconnect
* Save the AVDTP version discovered by SDP to the device's local configuration section with key string of "AvdtpVersion" * Refactor tBTA_AV_SCB and hide the AVDTP version and peer address behind get/set methods: AvdtpVersion() / SetAvdtpVersion() / PeerAddress(). * Added new methods tBTA_AV_SCB::OnConnected() and OnDisconnected(). The former is used to setup some of the internal state when connected to a peer: the peer address and read the stored AVDTP version from local configuration section. The latter is used to reset that state when disconnected from that peer. * Removed field tBTA_AV_SDP_RES.avdt_version because it is never set / used. * Removed duplicate re-definition of AVDT_VERSION inside avdt_api.h Bug: 78142165 Test: Manual: connect/reconnect with Sennheiser MOMENTUM M2 AEBT headset Change-Id: Ib9dcd95dc9899fa81f3cd927f127e5cb0f21ef60 Merged-In: Ib9dcd95dc9899fa81f3cd927f127e5cb0f21ef60 (cherry picked from commit a634f4e30a28d38d5363e01a7d7b301c281f9df4)
Loading
Please register or sign in to comment