OpenCloudOS-Kernel/drivers/net/wireless
Luis R. Rodriguez a08e7ade9d ath9k: fix assumptions for idle calls on suspend/resume
mac80211 will notify drivers when to go idle and ath9k
assumed that it would get further notifications for idle
states after a device stop() config call but as per agreed
semantics the idle state of the radio is left up to driver
after mac80211 issues the stop() callback. The driver is
resposnbile for ensuring the device remains idle after
that even between suspend / resume calls.

This fixes suspend/resume when you issue suspend and resume
twice on ath9k when ath9k_stop() was already called. We need
to put the radio to full sleep in order for resume to work
correctly.

What might seem fishy is we are turning the radio off
after resume. The reason why we do this is because we know
we should not have anything enabled after a mac80211 tells
us to stop(), if we resume and never get a start() we won't
get another stop() by mac80211 so to be safe always bring
the 802.11 device with the radio disabled after resume,
this ensures that if we suspend we already have the radio
disabled and only a start() will ever trigger it on.

Cc: stable@kernel.org
Cc: Paul Stewart <pstew@google.com>
Cc: Amod Bodas <amod.bodas@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-12-13 15:23:27 -05:00
..
ath ath9k: fix assumptions for idle calls on suspend/resume 2010-12-13 15:23:27 -05:00
b43 b43: rename config option for N-PHY, drop BROKEN 2010-12-08 15:38:45 -05:00
b43legacy drivers/net/wireless/b43legacy/main.c: Use printf extension %pV 2010-11-16 16:37:05 -05:00
hostap Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2010-10-24 13:41:39 -07:00
ipw2x00 libipw: fix proc entry removal 2010-11-08 16:32:38 -05:00
iwlwifi iwlwifi: jiffies based tx queues watchdog 2010-12-06 16:01:29 -05:00
iwmc3200wifi iwmc3200wifi: clarify potentially undefined operation in iwm_scan_ssids 2010-11-18 14:22:21 -05:00
libertas Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 2010-12-02 15:46:37 -05:00
libertas_tf Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-08-25 14:51:42 -04:00
orinoco Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 2010-12-08 16:23:31 -05:00
p54 wireless: Remove unnecessary casts of usb_get_intfdata 2010-12-02 15:16:47 -05:00
prism54 Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2010-10-24 13:41:39 -07:00
rt2x00 mac80211/rt2x00: add ieee80211_tx_status_ni() 2010-11-30 13:53:46 -05:00
rtl818x rtl8187: restore anaparam registers after reset with 8187B 2010-11-15 13:25:48 -05:00
wl12xx wl12xx: Unset bssid filter, ssid and bssid from firmware on disassoc 2010-11-22 16:45:14 +02:00
wl1251 wl1251: use wl12xx_platform_data to pass data 2010-11-15 13:27:02 -05:00
zd1211rw zd1211rw: Use const 2010-11-22 15:58:54 -05:00
Kconfig wl1251: move to it's own directory 2010-10-11 15:04:23 -04:00
Makefile wl1251: move to it's own directory 2010-10-11 15:04:23 -04:00
adm8211.c drivers/net/wireless: Restore upper case words in wiphy_<level> messages 2010-08-18 16:37:44 -04:00
adm8211.h
airo.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2010-10-23 11:47:02 -07:00
airo.h
airo_cs.c pcmcia: remove obsolete and wrong comments 2010-09-29 17:20:25 +02:00
at76c50x-usb.c WIRELESS: at76c50x, remove unneeded NULL check 2010-10-11 15:04:25 -04:00
at76c50x-usb.h
atmel.c atmel: Use static const 2010-11-22 15:58:46 -05:00
atmel.h
atmel_cs.c pcmcia: remove obsolete and wrong comments 2010-09-29 17:20:25 +02:00
atmel_pci.c
mac80211_hwsim.c mac80211_hwsim: Incorporate txpower into rssi 2010-11-15 13:25:28 -05:00
mwl8k.c mwl8k: use const struct fw pointers throughout 2010-11-16 16:37:03 -05:00
ray_cs.c wireless: ray_cs: use '%pm' format option to print MAC 2010-12-02 15:17:00 -05:00
ray_cs.h pcmcia: do not use win_req_t when calling pcmcia_request_window() 2010-09-29 17:20:21 +02:00
rayctl.h
rndis_wlan.c rndis_wlan: Use static const 2010-11-22 15:58:52 -05:00
wl3501.h
wl3501_cs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2010-10-23 11:47:02 -07:00
zd1201.c wireless: Remove unnecessary casts of usb_get_intfdata 2010-12-02 15:16:47 -05:00
zd1201.h