summaryrefslogtreecommitdiffstats
path: root/btif
diff options
context:
space:
mode:
authorPriti Aghera <paghera@broadcom.com>2012-04-09 22:39:41 -0700
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:15 -0700
commit9ec880cfeeb929342357b63f99e971d8e10ba2ff (patch)
treed2715a916ab97d9074589f823e35840c0d7bc52d /btif
parenta5c380dbe1419e077bf6a3a8a30359ce74958350 (diff)
downloadexternal_bluetooth_bluedroid-9ec880cfeeb929342357b63f99e971d8e10ba2ff.zip
external_bluetooth_bluedroid-9ec880cfeeb929342357b63f99e971d8e10ba2ff.tar.gz
external_bluetooth_bluedroid-9ec880cfeeb929342357b63f99e971d8e10ba2ff.tar.bz2
HID-PTS:Support for Hid Pts tests
Change-Id: I18cedbcee1d592faa76ab1859facaabf24d52b37
Diffstat (limited to 'btif')
-rwxr-xr-xbtif/src/btif_hh.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/btif/src/btif_hh.c b/btif/src/btif_hh.c
index 01061a1..0b945a0 100755
--- a/btif/src/btif_hh.c
+++ b/btif/src/btif_hh.c
@@ -401,13 +401,8 @@ void btif_hh_virtual_unpug(bt_bdaddr_t *bd_addr)
p_dev = btif_hh_find_dev_by_bda(bd_addr);
if (p_dev != NULL)
{
- if(p_dev->attr_mask & HID_VIRTUAL_CABLE)
- {
BTIF_TRACE_DEBUG1("%s Sending BTA_HH_CTRL_VIRTUAL_CABLE_UNPLUG", __FUNCTION__);
BTA_HhSendCtrl(p_dev->dev_handle, BTA_HH_CTRL_VIRTUAL_CABLE_UNPLUG);
- }
- else
- BTA_HhClose(p_dev->dev_handle);
}
else
BTIF_TRACE_ERROR2("%s: Error, device %s not opened.", __FUNCTION__, bd_str);
@@ -1344,9 +1339,7 @@ static bt_status_t send_data (bt_bdaddr_t *bd_addr, char* data)
/* Build a SetReport data buffer */
memset(hexbuf, 0, 200);
- //TODO
- /*
- hex_bytes_filled = scru_ascii_2_hex(data, len, hexbuf);
+ hex_bytes_filled = ascii_2_hex(data, len, hexbuf);
BTIF_TRACE_ERROR2("Hex bytes filled, hex value: %d, %d", hex_bytes_filled, len);
if (hex_bytes_filled) {
@@ -1355,7 +1348,7 @@ static bt_status_t send_data (bt_bdaddr_t *bd_addr, char* data)
memcpy(pbuf_data, hexbuf, hex_bytes_filled);
BTA_HhSendData(p_dev->dev_handle, *bda, p_dev->p_buf);
return BT_STATUS_SUCCESS;
- }*/
+ }
}
return BT_STATUS_FAIL;