OSDN Git Service

Ignore empty optional parameters in CLCC response
authorSatish Kodishala <skodisha@codeaurora.org>
Tue, 15 Sep 2015 14:16:41 +0000 (19:46 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 25 Mar 2016 20:01:06 +0000 (13:01 -0700)
commit3362048df98441dc46210fbb7f0aa2014ee717e1
treec3294d1096c3e00bef2012759835f242d5c256c6
parent9d3ef5ea53a3209881d2bf67342977bee7ceffc7
Ignore empty optional parameters in CLCC response

Usecase:
Pair and connect with AG that sends the optional parameters
in CLCC response.

Failure:
When optional parameters in CLCC response from AG is empty,
HF client is not parsing the empty optional parameters.
User may not be see the phone number on UI properly on
hf client device.

Root cause:
AGs like iPhone sends optional parameters in the CLCC response.
HF client is returning NULL when it encounters empty optional parameters.

Fix:
Ignore empty optional parameters in CLCC Response from AG.

Bug: 27852645
Change-Id: Ia90986ccc4c9c9f1a6fb3a914bc1df8b0a75ba0f
bta/hf_client/bta_hf_client_at.c