All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] plugins: Do not try to autopair with Nissan Connect devices
@ 2022-08-31 19:30 Florian Leeber
  2022-08-31 19:42 ` bluez.test.bot
                   ` (15 more replies)
  0 siblings, 16 replies; 21+ messages in thread
From: Florian Leeber @ 2022-08-31 19:30 UTC (permalink / raw)
  To: linux-bluetooth

It seems that Nissan Connect carkits a) do not use 0000 but 1234 as 
default code
but also b) the autopair plugin is not allowed to make a second attempt 
to pair.
Let´s try to not use the autopairing at all for those devices.
---
  plugins/autopair.c | 3 +++
  1 file changed, 3 insertions(+)

diff --git a/plugins/autopair.c b/plugins/autopair.c
index 0b09e89..6bf07e3 100644
--- a/plugins/autopair.c
+++ b/plugins/autopair.c
@@ -66,6 +66,9 @@ static ssize_t autopair_pincb(struct btd_adapter *adapter,
         /* The iCade shouldn't use random PINs like normal keyboards */
         if (strstr(name, "iCade") != NULL)
                 return 0;
+       /* Nissan Connect carkits use PIN 1234 but refuse a retry */
+       if (strstr(name, "NISSAN CONNECT") != NULL)
+               return 0;

         /* This is a class-based pincode guesser. Ignore devices with an
          * unknown class.
--
2.17.1


^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2022-09-29 23:59 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-31 19:30 [PATCH] plugins: Do not try to autopair with Nissan Connect devices Florian Leeber
2022-08-31 19:42 ` bluez.test.bot
2022-08-31 20:18 ` [PATCH] " Luiz Augusto von Dentz
2022-09-01 10:46   ` Bastien Nocera
2022-09-01 18:10     ` Florian Leeber
2022-09-01 23:56       ` Luiz Augusto von Dentz
2022-09-02 18:50         ` Florian Leeber
2022-09-29 16:49 ` bluez.test.bot
2022-09-29 17:44 ` bluez.test.bot
2022-09-29 18:40 ` bluez.test.bot
2022-09-29 19:01 ` bluez.test.bot
2022-09-29 19:29 ` bluez.test.bot
2022-09-29 19:47 ` bluez.test.bot
2022-09-29 20:34 ` bluez.test.bot
2022-09-29 20:53 ` bluez.test.bot
2022-09-29 21:30 ` bluez.test.bot
2022-09-29 21:52 ` bluez.test.bot
2022-09-29 22:32 ` bluez.test.bot
2022-09-29 22:52 ` bluez.test.bot
2022-09-29 23:40 ` bluez.test.bot
2022-09-29 23:59 ` bluez.test.bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.