X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH] asus-wmi: explicitly set the wireless LED
@ 2011-12-07  8:02 Keng-Yu Lin
       [not found] ` <1323244922-2673-1-git-send-email-kengyu-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
  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 related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-12-15  8:26 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
     [not found] ` <1323244922-2673-1-git-send-email-kengyu-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2011-12-15  7:07   ` Corentin Chary
     [not found]     ` <CAHR064iBtSTv79BhXt9_mMWugD4U_xLCM4i1wE7PLnZM8pL57g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-15  8:22       ` Johannes Berg
2011-12-15  8:25         ` Corentin Chary
     [not found]           ` <CAHR064ivFUeGwNAfB1MZO0mrvo+sAcM-cZTjR9wZTaPyWRhzAA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
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