[PATCH v2 11/11] plugins/autopair: Don't try to pair PS3 Keypad

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The keypad doesn't use pairing. Don't type your passwords on this...
---
 plugins/autopair.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/plugins/autopair.c b/plugins/autopair.c
index 6980b0a64..863b8d736 100644
--- a/plugins/autopair.c
+++ b/plugins/autopair.c
@@ -78,6 +78,10 @@ static ssize_t autopair_pincb(struct btd_adapter *adapter,
 	if (name != NULL && strstr(name, "iCade") != NULL)
 		return 0;
 
+	/* The PS3 Wireless Keypad doesn't need pairing */
+	if (name != NULL && g_str_equal(name, "Wireless Keypad"))
+		return 0;
+
 	/* This is a class-based pincode guesser. Ignore devices with an
 	 * unknown class.
 	 */
-- 
2.14.2

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux