diff options
author | Christian Lamparter <chunkeey@web.de> | 2009-03-24 22:12:18 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:36 -0400 |
commit | dce072580e095d1fb7be59a1be30dc0e8307821b (patch) | |
tree | a4ac9734c5d7703dc02fcd245c61b78dc1c28ff4 /drivers/net/wireless/p54/p54.h | |
parent | cf3a9579f61c643c15c172da0baf5429578b0ba3 (diff) |
p54: more SoftLED updates
This patch hopefully finishes the SoftLED code:
- It adds two more LEDs (rx and radio).
(the FW claims it can support up to 16 LEDs,
but I doubt that any vendor put more than 4 on a board)
- update the LEDs in a _delayed_ workqueue.
No one reported any more crashes.
(see: "PATCH] p54: fix race condition in memory management")
So we can stop burning the mm code.
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/p54.h')
-rw-r--r-- | drivers/net/wireless/p54/p54.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/p54/p54.h b/drivers/net/wireless/p54/p54.h index 04d95a143383..4499035359a6 100644 --- a/drivers/net/wireless/p54/p54.h +++ b/drivers/net/wireless/p54/p54.h | |||
@@ -125,6 +125,7 @@ struct p54_led_dev { | |||
125 | struct led_classdev led_dev; | 125 | struct led_classdev led_dev; |
126 | char name[P54_LED_MAX_NAME_LEN + 1]; | 126 | char name[P54_LED_MAX_NAME_LEN + 1]; |
127 | 127 | ||
128 | unsigned int toggled; | ||
128 | unsigned int index; | 129 | unsigned int index; |
129 | unsigned int registered; | 130 | unsigned int registered; |
130 | }; | 131 | }; |
@@ -186,10 +187,10 @@ struct p54_common { | |||
186 | u8 rx_keycache_size; | 187 | u8 rx_keycache_size; |
187 | 188 | ||
188 | /* LED management */ | 189 | /* LED management */ |
189 | #ifdef CONFIG_P54_LEDS | 190 | #ifdef CONFIG_MAC80211_LEDS |
190 | struct p54_led_dev assoc_led; | 191 | struct p54_led_dev leds[4]; |
191 | struct p54_led_dev tx_led; | 192 | struct delayed_work led_work; |
192 | #endif /* CONFIG_P54_LEDS */ | 193 | #endif /* CONFIG_MAC80211_LEDS */ |
193 | u16 softled_state; /* bit field of glowing LEDs */ | 194 | u16 softled_state; /* bit field of glowing LEDs */ |
194 | 195 | ||
195 | /* statistics */ | 196 | /* statistics */ |