summaryrefslogtreecommitdiffstats
path: root/btif
diff options
context:
space:
mode:
authorSreenidhi T <nidhit@broadcom.com>2012-04-27 07:15:14 -0700
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:19 -0700
commit2dd1d06380fe8635f247390e22b93324eb30d893 (patch)
tree40c18defb54adb7c1c555a7d8a73e9743bf33c88 /btif
parent29fa3a0e28eccd9511f530dd3e4e4a9123a33604 (diff)
downloadexternal_bluetooth_bluedroid-2dd1d06380fe8635f247390e22b93324eb30d893.zip
external_bluetooth_bluedroid-2dd1d06380fe8635f247390e22b93324eb30d893.tar.gz
external_bluetooth_bluedroid-2dd1d06380fe8635f247390e22b93324eb30d893.tar.bz2
Enable support for Unknown AT commands (AT commands stack doesnt parse). Add support for CMEE
Change-Id: I7cd13e297e68d873d2954bc24d0433b0b9983166
Diffstat (limited to 'btif')
-rwxr-xr-x[-rw-r--r--]btif/src/btif_hf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/btif/src/btif_hf.c b/btif/src/btif_hf.c
index 3079214..f191138 100644..100755
--- a/btif/src/btif_hf.c
+++ b/btif/src/btif_hf.c
@@ -77,7 +77,8 @@
BTA_AG_FEAT_ECS | \
BTA_AG_FEAT_EXTERR | \
BTA_AG_FEAT_BTRH | \
- BTA_AG_FEAT_VREC)
+ BTA_AG_FEAT_VREC | \
+ BTA_AG_FEAT_UNAT)
#define BTIF_HSAG_SERVICE_NAME ("Headset Gateway")
#define BTIF_HFAG_SERVICE_NAME ("Handsfree Gateway")
@@ -782,15 +783,14 @@ static bt_status_t formatted_at_response(const char *rsp)
** Returns bt_status_t
**
*******************************************************************************/
-static bt_status_t at_response(bthf_at_response_t response_code)
+static bt_status_t at_response(bthf_at_response_t response_code, int error_code)
{
CHECK_BTHF_INIT();
if (is_connected(NULL))
{
- /* TODO: Fix the errcode */
send_at_result((response_code == BTHF_AT_RESPONSE_OK) ? BTA_AG_OK_DONE
- : BTA_AG_OK_ERROR, 0);
+ : BTA_AG_OK_ERROR, error_code);
return BT_STATUS_SUCCESS;
}