diff mbox

hidp_output_raw_report, HID_OUTPUT_REPORT and Sixaxis

Message ID 20101130145405.d8142bc3.ospite@studenti.unina.it (mailing list archive)
State Accepted
Commit 97e1efbbe1c8492ea4f804618e26b19325c879fe
Delegated to: Jiri Kosina
Headers show

Commit Message

Antonio Ospite Nov. 30, 2010, 1:54 p.m. UTC
None
diff mbox

Patch

different report types was added to hidp, however in my Sixaxis
experiments setting leds (sending and output report) was not working
until I made this change:

diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index b68a608..0c443b7 100644
--- a/net/bluetooth/hidp/core.c
+++ b/net/bluetooth/hidp/core.c
@@ -402,7 +402,7 @@  static int hidp_output_raw_report(struct hid_device *hid, unsigned char *data, s
 		report_type = HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_FEATURE;
 		break;
 	case HID_OUTPUT_REPORT:
-		report_type = HIDP_TRANS_DATA | HIDP_DATA_RTYPE_OUPUT;
+		report_type = HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_OUPUT;
 		break;
 	default:
 		return -EINVAL;