diff options
Diffstat (limited to 'bta/hf_client/bta_hf_client_main.c')
-rw-r--r-- | bta/hf_client/bta_hf_client_main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bta/hf_client/bta_hf_client_main.c b/bta/hf_client/bta_hf_client_main.c index f5244b78c..4c01e47cf 100644 --- a/bta/hf_client/bta_hf_client_main.c +++ b/bta/hf_client/bta_hf_client_main.c @@ -573,7 +573,8 @@ void bta_hf_client_slc_seq(BOOLEAN error) break; case BTA_HF_CLIENT_AT_BRSF: - if (bta_hf_client_cb.scb.peer_features & BTA_HF_CLIENT_PEER_CODEC) + if ((bta_hf_client_cb.scb.features & BTA_HF_CLIENT_FEAT_CODEC) + && (bta_hf_client_cb.scb.peer_features & BTA_HF_CLIENT_PEER_CODEC)) { bta_hf_client_send_at_bac(); break; @@ -595,7 +596,8 @@ void bta_hf_client_slc_seq(BOOLEAN error) break; case BTA_HF_CLIENT_AT_CMER: - if (bta_hf_client_cb.scb.peer_features & BTA_HF_CLIENT_PEER_FEAT_3WAY) + if (bta_hf_client_cb.scb.peer_features & BTA_HF_CLIENT_PEER_FEAT_3WAY + && bta_hf_client_cb.scb.features & BTA_HF_CLIENT_FEAT_3WAY) { bta_hf_client_send_at_chld('?', 0); } |