aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/562-ath9k_add_idle_hack.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-07-16 23:50:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-07-16 23:50:54 +0000
commitcf9bca8dedb00b41c42a994ae08b91c37d11895c (patch)
tree70272e7b9e0d26608ba3e5805ab01855a9717ac7 /package/mac80211/patches/562-ath9k_add_idle_hack.patch
parent84585b45d6ab5a71a805e45df889b01217950484 (diff)
downloadupstream-cf9bca8dedb00b41c42a994ae08b91c37d11895c.tar.gz
upstream-cf9bca8dedb00b41c42a994ae08b91c37d11895c.tar.bz2
upstream-cf9bca8dedb00b41c42a994ae08b91c37d11895c.zip
mac80211: update to latest wireless-testing + some monitor mode fixes and some libertas driver fixes
SVN-Revision: 32760
Diffstat (limited to 'package/mac80211/patches/562-ath9k_add_idle_hack.patch')
-rw-r--r--package/mac80211/patches/562-ath9k_add_idle_hack.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/mac80211/patches/562-ath9k_add_idle_hack.patch b/package/mac80211/patches/562-ath9k_add_idle_hack.patch
new file mode 100644
index 0000000000..999a7eea50
--- /dev/null
+++ b/package/mac80211/patches/562-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
+@@ -1055,6 +1055,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);
+ }
+
+@@ -1107,7 +1108,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);