[2.6.28-rc7 PATCH] Make Bluetooth rfkill work on EeePC

From: Darren Salt
Date: Wed Dec 03 2008 - 13:16:33 EST


"echo 1 >/sys/class/rfkill/rfkill1/state" was failing with "no such device"
on my 901. This fixes it.

Signed-Off-By: Darren Salt <linux@xxxxxxxxxxxxxxxxxxxxxxxxxxx>

This needs Bernd Spaeth's sign-off too (and promptly!) since I took this from
the patch which he posted to debian-eeepc-devel. URL:
http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/2008-October/001299.html

--- ./drivers/misc/eeepc-laptop.c.orig 2008-12-03 17:17:01.000000000 +0000
+++ ./drivers/misc/eeepc-laptop.c 2008-12-03 17:28:36.000000000 +0000
@@ -90,7 +90,7 @@
};

static const char *cm_getv[] = {
- "WLDG", NULL, NULL, NULL,
+ "WLDG", "BTHG", NULL, NULL,
"CAMG", NULL, NULL, NULL,
NULL, "PBLG", NULL, NULL,
"CFVG", NULL, NULL, NULL,
@@ -99,7 +99,7 @@
};

static const char *cm_setv[] = {
- "WLDS", NULL, NULL, NULL,
+ "WLDS", "BTHS", NULL, NULL,
"CAMS", NULL, NULL, NULL,
"SDSP", "PBLS", "HDPS", NULL,
"CFVS", NULL, NULL, NULL,

--
| Darren Salt | linux or ds at | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Lobby friends, family, business, government. WE'RE KILLING THE PLANET.

To have died once is enough.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/