bluetooth hid: enable quirk handling for Apple Wireless Keyboards in 2.6.24

Bryan Wu bryan.wu at
Tue Apr 28 15:32:07 UTC 2009

Bug: #227501

This patch is basically a backport of
commit ee8a1a0a1a5817accd03ced7e7ffde3a4430f485 upstream
and 5a027e910cc26f9b1f8e32daaeb0d552664b2a54 in Intrepid kernel
which was made after the big HID overhaul in 2.6.28.

Kernel 2.6.24 fails to handle quirks for the aluminum Apple Wireless
Keyboard because it is handled as USB device and not as Bluetooth
device. This patch expands 'hidp_blacklist' to make the kernel handle
the keyboard in the same way as the Apple wireless Mighty Mouse (also a
Bluetooth device).

Signed-off-by: Torsten Rausche <torsten at>
Cc: Jan Scholz <Scholz at>
Cc: Jiri Kosina <jkosina at>
Signed-off-by: Greg Kroah-Hartman <gregkh at>
Signed-off-by: Stefan Bader <stefan.bader at>
Acked-by: Andy Whitcroft <apw at>
Signed-off-by: Bryan Wu <bryan.wu at>
 net/bluetooth/hidp/core.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index dfaef02..3eebb5f 100644
--- a/net/bluetooth/hidp/core.c
+++ b/net/bluetooth/hidp/core.c
@@ -696,6 +696,8 @@ static const struct {
 	/* Apple Wireless Aluminum Keyboard */
 	{ 0x05ac, 0x022c, HID_QUIRK_APPLE_HAS_FN },
+	{ 0x05ac, 0x022d, HID_QUIRK_APPLE_HAS_FN },
+	{ 0x05ac, 0x022e, HID_QUIRK_APPLE_HAS_FN },
 	{ }	/* Terminating entry */

More information about the kernel-team mailing list