diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-11-15 14:53:21 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-11-15 14:53:21 +0000 |
commit | 817c72ef02d9c16b3a0021404aa9c6781382b74e (patch) | |
tree | 6646b976d56bc5a93431531cc4f0479351b53efb /package/mac80211/patches/563-ath9k_fix_full_sleep_tx.patch | |
parent | 215239a470a353cf6b9e39a13052af294f7e95c7 (diff) | |
download | mtk-20170518-817c72ef02d9c16b3a0021404aa9c6781382b74e.zip mtk-20170518-817c72ef02d9c16b3a0021404aa9c6781382b74e.tar.gz mtk-20170518-817c72ef02d9c16b3a0021404aa9c6781382b74e.tar.bz2 |
ath9k: reorganize patches, reset hardware after full sleep (fixes #10349)
SVN-Revision: 29155
Diffstat (limited to 'package/mac80211/patches/563-ath9k_fix_full_sleep_tx.patch')
-rw-r--r-- | package/mac80211/patches/563-ath9k_fix_full_sleep_tx.patch | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/package/mac80211/patches/563-ath9k_fix_full_sleep_tx.patch b/package/mac80211/patches/563-ath9k_fix_full_sleep_tx.patch deleted file mode 100644 index 17575b9..0000000 --- a/package/mac80211/patches/563-ath9k_fix_full_sleep_tx.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- a/drivers/net/wireless/ath/ath9k/main.c -+++ b/drivers/net/wireless/ath/ath9k/main.c -@@ -118,7 +118,7 @@ void ath9k_ps_restore(struct ath_softc * - if (--sc->ps_usecount != 0) - goto unlock; - -- if (sc->ps_idle) -+ if (sc->ps_idle && !(sc->ps_flags & PS_WAIT_FOR_TX_ACK)) - mode = ATH9K_PM_FULL_SLEEP; - else if (sc->ps_enabled && - !(sc->ps_flags & (PS_WAIT_FOR_BEACON | ---- a/drivers/net/wireless/ath/ath9k/xmit.c -+++ b/drivers/net/wireless/ath/ath9k/xmit.c -@@ -1983,7 +1983,7 @@ static void ath_tx_complete(struct ath_s - skb_pull(skb, padsize); - } - -- if (sc->ps_flags & PS_WAIT_FOR_TX_ACK) { -+ if ((sc->ps_flags & PS_WAIT_FOR_TX_ACK) && !txq->axq_depth) { - sc->ps_flags &= ~PS_WAIT_FOR_TX_ACK; - ath_dbg(common, ATH_DBG_PS, - "Going back to sleep after having received TX status (0x%lx)\n", |