mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] asus-wmi: explicitly set the wireless LED
@ 2011-12-07  8:02 Keng-Yu Lin
  2011-12-15  7:07 ` Corentin Chary
  0 siblings, 1 reply; 5+ messages in thread
From: Keng-Yu Lin @ 2011-12-07  8:02 UTC (permalink / raw)
  To: Corentin Chary, Matthew Garrett, acpi4asus-user,
	platform-driver-x86, linux-kernel
  Cc: Keng-Yu Lin

On Asus K54C, the wireless LED is always off without setting explicitly.

Signed-off-by: Keng-Yu Lin <kengyu@canonical.com>
---
 drivers/platform/x86/asus-wmi.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index d1049ee..db514c4 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -726,6 +726,9 @@ static int asus_rfkill_set(void *data, bool blocked)
 	struct asus_rfkill *priv = data;
 	u32 ctrl_param = !blocked;
 
+	if (priv->dev_id == ASUS_WMI_DEVID_WLAN)
+		asus_wmi_set_devstate(ASUS_WMI_DEVID_WIRELESS_LED, ctrl_param, NULL);
+
 	return asus_wmi_set_devstate(priv->dev_id, ctrl_param, NULL);
 }
 
-- 
1.7.5.4


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

end of thread, other threads:[~2011-12-15  8:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-07  8:02 [PATCH] asus-wmi: explicitly set the wireless LED Keng-Yu Lin
2011-12-15  7:07 ` Corentin Chary
2011-12-15  8:22   ` Johannes Berg
2011-12-15  8:25     ` Corentin Chary
2011-12-15  8:26       ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®