diff options
author | Antonio Ospite <ospite@studenti.unina.it> | 2010-05-03 17:19:03 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-05-03 17:19:03 +0200 |
commit | fddb33f2e8872fa4857dd29f0b71a523c9ed5577 (patch) | |
tree | 30df54407d5270d03a29df552be0388167b58aed /drivers/hid | |
parent | ed7e2ca24bfff5c7a09de8a05c536f68560b34fb (diff) | |
download | kernel-common-fddb33f2e8872fa4857dd29f0b71a523c9ed5577.tar.gz kernel-common-fddb33f2e8872fa4857dd29f0b71a523c9ed5577.tar.bz2 kernel-common-fddb33f2e8872fa4857dd29f0b71a523c9ed5577.zip |
HID: sony: fix sony_set_operational_bt
Don't send the report type as part of the data, this prevents the
controller from going into the operational state at all.
This is completely equivalent to what the code originally meant to accomplish:
as per in net/bluetooth/hidp/core.c::hidp_output_raw_report(), by using
HID_FEATURE_REPORT here, what will be actually sent is
(HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_FEATURE) which is exactly 0x53.
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-sony.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index 7502a4b2fa86..402d5574b574 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -76,7 +76,7 @@ static int sony_set_operational_usb(struct hid_device *hdev) static int sony_set_operational_bt(struct hid_device *hdev) { - unsigned char buf[] = { 0x53, 0xf4, 0x42, 0x03, 0x00, 0x00 }; + unsigned char buf[] = { 0xf4, 0x42, 0x03, 0x00, 0x00 }; return hdev->hid_output_raw_report(hdev, buf, sizeof(buf), HID_FEATURE_REPORT); } |