android_kernel_xiaomi_sdm845/drivers/net/wireless/rt2x00
Ivo van Doorn 9a95dba327 rt2x00: Fix LED state handling
For every global LED state change (register/unregister,
suspend/resume) we should force the LEDS to turn off.
This makes sure that the LEDS will always be in a sane
state after the state switch.

Note that when unregister is called but the LED class
wasn't resumed yet, we shouldn't change the LED state
since we might not have access to the device (device
was unplugged while suspended).

Also remove the checks in the activity, assoc and
radio LEDS which blocked calls to brightness_set()
when the state hasn't changed. Some of those LEDS
could be enabled by themselves when something happens
in the hardware (e.g. firmware is loaded). We already
did called rt2x00leds to switch the LED off, but those
calls were blocked.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-11-21 11:06:05 -05:00
..
Kconfig rt2x00: Fix build error when mac80211=M rt2x00=Y 2008-10-29 17:54:35 -04:00
Makefile rt2x00: Implement HW encryption 2008-08-22 16:29:58 -04:00
rt2x00.h rt2x00: Release rt2x00 2.2.2 2008-11-10 15:17:34 -05:00
rt2x00config.c rt2x00: Optimize configuration handling 2008-11-10 15:17:33 -05:00
rt2x00crypto.c mac80211: free up 2 bytes in skb->cb 2008-10-06 18:14:57 -04:00
rt2x00debug.c rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2x00debug.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2x00dev.c rt2x00: Remove RATE_BASIC flag 2008-11-21 11:06:05 -05:00
rt2x00dump.h rt2x00: Queue handling overhaul 2008-02-29 15:19:27 -05:00
rt2x00firmware.c rt2x00: Reset LED assoc status after firmware update 2008-07-14 14:53:00 -04:00
rt2x00leds.c rt2x00: Fix LED state handling 2008-11-21 11:06:05 -05:00
rt2x00leds.h rt2x00: Remove MAC80211_LEDS dependency 2008-04-01 17:14:09 -04:00
rt2x00lib.h rt2x00: Remove RATE_BASIC flag 2008-11-21 11:06:05 -05:00
rt2x00mac.c rt2x00: Remove ieee80211_bss_conf from rt2x00_intf 2008-11-10 15:17:33 -05:00
rt2x00pci.c pci: use pci_ioremap_bar() in drivers/net 2008-10-31 00:53:48 -04:00
rt2x00pci.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2x00queue.c rt2x00: reduce checkpatch.pl errors 2008-10-31 19:00:40 -04:00
rt2x00queue.h mac80211/drivers: rewrite the rate control API 2008-10-31 19:00:23 -04:00
rt2x00reg.h Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 2008-09-08 16:59:05 -07:00
rt2x00rfkill.c rt2x00: Fix rfkill structure initialization to prevent rfkill WARN_ON. 2008-10-06 18:14:57 -04:00
rt2x00usb.c rt2x00: skb->data pointer should not include TX descriptor 2008-08-29 16:24:12 -04:00
rt2x00usb.h rt2x00: Fix compile warning 2008-08-02 01:31:09 -07:00
rt61pci.c rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt61pci.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt73usb.c rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt73usb.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2400pci.c rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2400pci.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2500pci.c rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2500pci.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2500usb.c rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2500usb.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00