* [PATCH] wiimote: add Wii Balance Board detection
@ 2012-09-12 21:32 David Herrmann
2012-09-13 18:47 ` Florian Echtler
2012-09-21 13:51 ` Johan Hedberg
0 siblings, 2 replies; 3+ messages in thread
From: David Herrmann @ 2012-09-12 21:32 UTC (permalink / raw)
To: linux-bluetooth; +Cc: dh.herrmann, johan.hedberg, floe
Add the name of the Wii Balance Board so it can be paired with BlueZ like
any other Wii Remote. Reported by Florian Echtler.
---
plugins/wiimote.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/wiimote.c b/plugins/wiimote.c
index 337d408..3d16966 100644
--- a/plugins/wiimote.c
+++ b/plugins/wiimote.c
@@ -76,6 +76,7 @@ static ssize_t wii_pincb(struct btd_adapter *adapter, struct btd_device *device,
name[sizeof(name) - 1] = 0;
if (g_str_equal(name, "Nintendo RVL-CNT-01") ||
+ g_str_equal(name, "Nintendo RVL-WBC-01") ||
(vendor == 0x057e && product == 0x0306)) {
DBG("Forcing fixed pin on detected wiimote %s", addr);
memcpy(pinbuf, &sba, 6);
--
1.7.12
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] wiimote: add Wii Balance Board detection
2012-09-12 21:32 [PATCH] wiimote: add Wii Balance Board detection David Herrmann
@ 2012-09-13 18:47 ` Florian Echtler
2012-09-21 13:51 ` Johan Hedberg
1 sibling, 0 replies; 3+ messages in thread
From: Florian Echtler @ 2012-09-13 18:47 UTC (permalink / raw)
To: David Herrmann; +Cc: linux-bluetooth, johan.hedberg
Confirmed to work, with patch applied against 4.101 Ubuntu package.
Florian
On 12.09.2012 23:32, David Herrmann wrote:
> Add the name of the Wii Balance Board so it can be paired with BlueZ like
> any other Wii Remote. Reported by Florian Echtler.
> ---
> plugins/wiimote.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/plugins/wiimote.c b/plugins/wiimote.c
> index 337d408..3d16966 100644
> --- a/plugins/wiimote.c
> +++ b/plugins/wiimote.c
> @@ -76,6 +76,7 @@ static ssize_t wii_pincb(struct btd_adapter *adapter, struct btd_device *device,
> name[sizeof(name) - 1] = 0;
>
> if (g_str_equal(name, "Nintendo RVL-CNT-01") ||
> + g_str_equal(name, "Nintendo RVL-WBC-01") ||
> (vendor == 0x057e && product == 0x0306)) {
> DBG("Forcing fixed pin on detected wiimote %s", addr);
> memcpy(pinbuf, &sba, 6);
>
--
SENT FROM MY DEC VT50 TERMINAL
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] wiimote: add Wii Balance Board detection
2012-09-12 21:32 [PATCH] wiimote: add Wii Balance Board detection David Herrmann
2012-09-13 18:47 ` Florian Echtler
@ 2012-09-21 13:51 ` Johan Hedberg
1 sibling, 0 replies; 3+ messages in thread
From: Johan Hedberg @ 2012-09-21 13:51 UTC (permalink / raw)
To: David Herrmann; +Cc: linux-bluetooth, floe
Hi David,
On Wed, Sep 12, 2012, David Herrmann wrote:
> Add the name of the Wii Balance Board so it can be paired with BlueZ like
> any other Wii Remote. Reported by Florian Echtler.
> ---
> plugins/wiimote.c | 1 +
> 1 file changed, 1 insertion(+)
Applied (after a minor coding style fix). Thanks!
Johan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-09-21 13:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-12 21:32 [PATCH] wiimote: add Wii Balance Board detection David Herrmann
2012-09-13 18:47 ` Florian Echtler
2012-09-21 13:51 ` Johan Hedberg
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).