summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ar9170/ar9170.h
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@web.de>2009-05-25 21:51:19 +0200
committerJohn W. Linville <linville@tuxdriver.com>2009-06-03 20:05:15 +0200
commit2431fe9a4b43ccf03589fa661662da6bfbd97282 (patch)
treef609096a84180829aea2a2820048c00890d21970 /drivers/net/wireless/ath/ar9170/ar9170.h
parentar9170: kill duplicated HT feature flag (diff)
downloadlinux-2431fe9a4b43ccf03589fa661662da6bfbd97282.tar.xz
linux-2431fe9a4b43ccf03589fa661662da6bfbd97282.zip
ar9170: fix LED power state handling
This patch fixes a minor visual bug in the led code, which left the LED in the wrong power state when it was toggled in a _unexpected_ way (e.g: enabling the LED twice). Signed-off-by: Christian Lamparter <chunkeey@web.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ar9170/ar9170.h')
-rw-r--r--drivers/net/wireless/ath/ar9170/ar9170.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ar9170/ar9170.h b/drivers/net/wireless/ath/ar9170/ar9170.h
index 1247dcb9081a..396b24016f5e 100644
--- a/drivers/net/wireless/ath/ar9170/ar9170.h
+++ b/drivers/net/wireless/ath/ar9170/ar9170.h
@@ -91,6 +91,7 @@ struct ar9170_led {
struct led_classdev l;
char name[32];
unsigned int toggled;
+ bool last_state;
bool registered;
};