OSDN Git Service

HSP: Use peer_version during SCO setup
authorJack He <siyuanh@google.com>
Tue, 23 May 2017 02:23:04 +0000 (19:23 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 26 May 2017 19:46:34 +0000 (19:46 +0000)
commita3745c645f3ab5b80a7325092bd6bb14accc265f
treea77258386ed267fb41bcde72be5d87bd5fcd3c4c
parentbd40666323f1739c7455cf9cbf32574aad3b5bdf
HSP: Use peer_version during SCO setup

* HSP profile should use peer_version obtained through SDP search to
  determine its behavior during SCO setup instead of a local version
  during initialization
* Added a WARNING message if SDP search failed to get remote HSP
  version, the default behavior is to use HSP 1.0
* Changed SDP search initialization to look for one UUID at a time
* See Bluetooth Erratum 3507

Test: make, HSP PTS test
Bug: 38210042
Change-Id: I67ce615a785b25a2e9304613a29d9be66a656c54
bta/ag/bta_ag_act.cc
bta/ag/bta_ag_cmd.cc
bta/ag/bta_ag_int.h
bta/ag/bta_ag_sdp.cc