summaryrefslogtreecommitdiffstats
path: root/stack/hid
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 /stack/hid
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 'stack/hid')
-rwxr-xr-x[-rw-r--r--]stack/hid/hidh_conn.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/stack/hid/hidh_conn.c b/stack/hid/hidh_conn.c
index 4744e10..29c4025 100644..100755
--- a/stack/hid/hidh_conn.c
+++ b/stack/hid/hidh_conn.c
@@ -830,6 +830,11 @@ tHID_STATUS hidh_conn_snd_data (UINT8 dhandle, UINT8 trans_type, UINT8 param,
case HID_TRANS_SET_REPORT:
case HID_TRANS_GET_PROTOCOL:
case HID_TRANS_SET_PROTOCOL:
+ case HID_TRANS_GET_IDLE:
+ case HID_TRANS_SET_IDLE:
+ cid = p_hcon->ctrl_cid;
+ pool_id = HID_CONTROL_POOL_ID;
+ break;
case HID_TRANS_DATA:
cid = p_hcon->intr_cid;
pool_id = HID_INTERRUPT_POOL_ID;
@@ -838,7 +843,9 @@ tHID_STATUS hidh_conn_snd_data (UINT8 dhandle, UINT8 trans_type, UINT8 param,
return (HID_ERR_INVALID_PARAM) ;
}
- if( (trans_type == HID_TRANS_GET_REPORT) && (param & 0x08) )
+ if( trans_type == HID_TRANS_SET_IDLE )
+ use_data = 1;
+ else if( (trans_type == HID_TRANS_GET_REPORT) && (param & 0x08) )
use_data = 2;
do