* [PATCH] Add support for pairing a few GPS devices
@ 2008-10-23 21:54 Bastien Nocera
2008-10-27 19:52 ` Marcel Holtmann
0 siblings, 1 reply; 3+ messages in thread
From: Bastien Nocera @ 2008-10-23 21:54 UTC (permalink / raw)
To: BlueZ development
[-- Attachment #1: Type: text/plain, Size: 179 bytes --]
Add support for hard-coded pincodes for a few GPS devices, one being
mine, the other being mentioned by Ralph Loader in
https://bugzilla.redhat.com/show_bug.cgi?id=464446
Cheers
[-- Attachment #2: 0001-Add-support-for-pairing-a-few-GPS-devices.patch --]
[-- Type: text/x-patch, Size: 1168 bytes --]
>From 91d5a9fc32f990c92fa5091c046ccbb6ed2e72e0 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Thu, 23 Oct 2008 22:51:30 +0100
Subject: [PATCH] Add support for pairing a few GPS devices
Add support for hard-coded pincodes for a few GPS devices, one being
mine, the other being mentioned by Ralph Loader in
https://bugzilla.redhat.com/show_bug.cgi?id=464446
---
wizard/main.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/wizard/main.c b/wizard/main.c
index 6f0b035..a20e280 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -75,6 +75,14 @@ static gboolean pincode_callback(DBusGMethodInvocation *context,
target_type == BLUETOOTH_TYPE_HEADPHONE)
pincode = "0000";
+ /* Most GPS devices also use 0000 as pincode */
+ if (g_str_has_prefix(target_address, "00:0D:B5") == TRUE &&
+ (g_str_equal(target_name,
+ "TomTom Wireless GPS MkII") == TRUE ||
+ g_str_equal(target_name,
+ "GPS-GW-005") == TRUE))
+ pincode = "0000";
+
text = g_strdup_printf(_("Please enter the following PIN code: %s"),
pincode);
gtk_label_set_markup(GTK_LABEL(label_passkey), text);
--
1.6.0.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Add support for pairing a few GPS devices
2008-10-23 21:54 [PATCH] Add support for pairing a few GPS devices Bastien Nocera
@ 2008-10-27 19:52 ` Marcel Holtmann
2008-11-11 5:32 ` Ville Tervo
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2008-10-27 19:52 UTC (permalink / raw)
To: Bastien Nocera; +Cc: BlueZ development
Hi Bastien,
> Add support for hard-coded pincodes for a few GPS devices, one being
> mine, the other being mentioned by Ralph Loader in
> https://bugzilla.redhat.com/show_bug.cgi?id=464446
patch has been applied. Thanks.
Regards
Marcel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Add support for pairing a few GPS devices
2008-10-27 19:52 ` Marcel Holtmann
@ 2008-11-11 5:32 ` Ville Tervo
0 siblings, 0 replies; 3+ messages in thread
From: Ville Tervo @ 2008-11-11 5:32 UTC (permalink / raw)
To: ext Marcel Holtmann; +Cc: Bastien Nocera, BlueZ development
Hi,
ext Marcel Holtmann wrote:
> Hi Bastien,
>
>> Add support for hard-coded pincodes for a few GPS devices, one being
>> mine, the other being mentioned by Ralph Loader in
>> https://bugzilla.redhat.com/show_bug.cgi?id=464446
>
> patch has been applied. Thanks.
I have never followed bluez-gnome developement and I might have some
gaps in knowlegde of made decisions.
Is it really intentional not to have user specified passkey as an
option? Of course there can be a list of "known pincodes" but frankly
I don't believe all the codes will be there in some point. At least
the list should be editable by the user?
--
Ville
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-11 5:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-23 21:54 [PATCH] Add support for pairing a few GPS devices Bastien Nocera
2008-10-27 19:52 ` Marcel Holtmann
2008-11-11 5:32 ` Ville Tervo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).