Diff between 29a46bf7dbdb7438015ffb7328e67682c05d895f and 1b6f41bea1cdeaafeb4c1ad587268fe7f5ce64f3

Changed Files

File Additions Deletions Status
compat/hidd.c +0 -12 modified

Full Patch

diff --git a/compat/hidd.c b/compat/hidd.c
index 64dd455..fd1b28c 100644
--- a/compat/hidd.c
+++ b/compat/hidd.c
@@ -237,15 +237,6 @@ static int request_encryption(bdaddr_t *src, bdaddr_t *dst)
 	return err;
 }
 
-static int enable_sixaxis(int csk)
-{
-	const unsigned char buf[] = {
-		0x53 /*HIDP_TRANS_SET_REPORT | HIDP_DATA_RTYPE_FEATURE*/,
-		0xf4,  0x42, 0x03, 0x00, 0x00 };
-
-	return write(csk, buf, sizeof(buf));
-}
-
 static int create_device(int ctl, int csk, int isk, uint8_t subclass, int nosdp, int nocheck, int bootonly, int encrypt, int timeout)
 {
 	struct hidp_connadd_req req;
@@ -334,9 +325,6 @@ create:
 		req.flags |= (1 << HIDP_BOOT_PROTOCOL_MODE);
 	}
 
-	if (req.vendor == 0x054c && req.product == 0x0268)
-		enable_sixaxis(csk);
-
 	err = ioctl(ctl, HIDPCONNADD, &req);
 
 error: