diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2007-10-10 23:44:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:03:27 -0500 |
commit | 93bb7f3a7bb5c95da10242d9763994a466c90b1d (patch) | |
tree | 8c248e88ea2be5ae791003050bda848b4a72dd36 /drivers/net/wireless/b43legacy/leds.c | |
parent | ba48f7bb8062982ec916868cc8c90360aad82e53 (diff) |
b43legacy: RF-kill support
This adds full support for the RFKILL button and the RFKILL LED trigger.
This is a port to b43legacy of a patch by Michael Buesch <mb@bu3sch.de>
for b43.
Signed-off-by: Larry Finger<Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43legacy/leds.c')
-rw-r--r-- | drivers/net/wireless/b43legacy/leds.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/b43legacy/leds.c b/drivers/net/wireless/b43legacy/leds.c index 1e30919582c5..9ef284fda80e 100644 --- a/drivers/net/wireless/b43legacy/leds.c +++ b/drivers/net/wireless/b43legacy/leds.c | |||
@@ -156,12 +156,16 @@ static void b43legacy_map_led(struct b43legacy_wldev *dev, | |||
156 | ieee80211_get_rx_led_name(hw), | 156 | ieee80211_get_rx_led_name(hw), |
157 | led_index, activelow); | 157 | led_index, activelow); |
158 | break; | 158 | break; |
159 | /*FIXME: We need another trigger for the "radio-on" LEDs below. | ||
160 | * Wiggle that somehow into the rfkill subsystem. */ | ||
161 | case B43legacy_LED_RADIO_ALL: | 159 | case B43legacy_LED_RADIO_ALL: |
162 | case B43legacy_LED_RADIO_A: | 160 | case B43legacy_LED_RADIO_A: |
163 | case B43legacy_LED_RADIO_B: | 161 | case B43legacy_LED_RADIO_B: |
164 | case B43legacy_LED_MODE_BG: | 162 | case B43legacy_LED_MODE_BG: |
163 | snprintf(name, sizeof(name), | ||
164 | "b43legacy-%s:radio", wiphy_name(hw->wiphy)); | ||
165 | b43legacy_register_led(dev, &dev->led_radio, name, | ||
166 | b43legacy_rfkill_led_name(dev), | ||
167 | led_index, activelow); | ||
168 | break; | ||
165 | case B43legacy_LED_WEIRD: | 169 | case B43legacy_LED_WEIRD: |
166 | case B43legacy_LED_ASSOC: | 170 | case B43legacy_LED_ASSOC: |
167 | snprintf(name, sizeof(name), | 171 | snprintf(name, sizeof(name), |