From 5c105d9f3fd086aff195d3849dcf847d6b0bd927 Mon Sep 17 00:00:00 2001 From: blogic Date: Fri, 5 Oct 2012 10:12:53 +0000 Subject: branch Attitude Adjustment git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33625 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../mac80211/patches/562-ath9k_add_idle_hack.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 package/mac80211/patches/562-ath9k_add_idle_hack.patch (limited to 'package/mac80211/patches/562-ath9k_add_idle_hack.patch') 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 000000000..10fac17bd --- /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 +@@ -1087,6 +1087,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); + } + +@@ -1139,7 +1140,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); -- cgit v1.2.3