OSDN Git Service

android/hidhost: Set info request from HAL is not supported
authorRavi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Tue, 12 Nov 2013 15:07:15 +0000 (17:07 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 13 Nov 2013 09:26:38 +0000 (11:26 +0200)
Data from hal_cmd_hidhost_set_info is usefull only when we create
UHID device. Once device is created all the transactions will be
done through the fd. There is no way to use this information
once device is created with HID internals.

android/hidhost.c

index 0bc7154..f5a1b14 100644 (file)
@@ -839,9 +839,13 @@ static uint8_t bt_hid_virtual_unplug(struct hal_cmd_hidhost_virtual_unplug *cmd,
 
 static uint8_t bt_hid_info(struct hal_cmd_hidhost_set_info *cmd, uint16_t len)
 {
-       DBG("Not Implemented");
+       /* Data from hal_cmd_hidhost_set_info is usefull only when we create
+        * UHID device. Once device is created all the transactions will be
+        * done through the fd. There is no way to use this information
+        * once device is created with HID internals. */
+       DBG("Not supported");
 
-       return HAL_STATUS_FAILED;
+       return HAL_STATUS_UNSUPPORTED;
 }
 
 static uint8_t bt_hid_get_protocol(struct hal_cmd_hidhost_get_protocol *cmd,