diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-07-10 23:42:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-07-10 23:42:30 +0000 |
commit | ed06d0bb2686a2b262b9b742b7e1b38d73336c50 (patch) | |
tree | b46c208e2af9721526596d71537fc6cf9015be88 /package/mac80211/patches | |
parent | 7f153913f8f57c68ba73d2153caf00422b80b0a5 (diff) | |
download | upstream-ed06d0bb2686a2b262b9b742b7e1b38d73336c50.tar.gz upstream-ed06d0bb2686a2b262b9b742b7e1b38d73336c50.tar.bz2 upstream-ed06d0bb2686a2b262b9b742b7e1b38d73336c50.zip |
ath9k: disable hardware full sleep with active client mode interface until mac80211 IEEE80211_CONF_IDLE support has been fixed
SVN-Revision: 32657
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r-- | package/mac80211/patches/567-ath9k_add_idle_hack.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/package/mac80211/patches/567-ath9k_add_idle_hack.patch b/package/mac80211/patches/567-ath9k_add_idle_hack.patch new file mode 100644 index 0000000000..9f1a43df32 --- /dev/null +++ b/package/mac80211/patches/567-ath9k_add_idle_hack.patch @@ -0,0 +1,20 @@ +--- a/drivers/net/wireless/ath/ath9k/main.c ++++ b/drivers/net/wireless/ath/ath9k/main.c +@@ -1044,6 +1044,7 @@ static void ath9k_remove_interface(struc + ath9k_calculate_summary_state(hw, NULL); + + mutex_unlock(&sc->mutex); ++ ath9k_config(hw, IEEE80211_CONF_CHANGE_IDLE); + ath9k_ps_restore(sc); + } + +@@ -1096,7 +1097,8 @@ int ath9k_config(struct ieee80211_hw *hw + mutex_lock(&sc->mutex); + + if (changed & IEEE80211_CONF_CHANGE_IDLE) { +- sc->ps_idle = !!(conf->flags & IEEE80211_CONF_IDLE); ++ sc->ps_idle = !!(conf->flags & IEEE80211_CONF_IDLE) && ++ !sc->nvifs; + if (sc->ps_idle) { + ath_cancel_work(sc); + ath9k_stop_btcoex(sc); |