mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-13 10:24:51 +00:00
ath9k: do not put the hardware to full-sleep while tx is pending
SVN-Revision: 29133
This commit is contained in:
parent
b14b5bb038
commit
b33f7e264c
22
package/mac80211/patches/563-ath9k_fix_full_sleep_tx.patch
Normal file
22
package/mac80211/patches/563-ath9k_fix_full_sleep_tx.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
--- 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",
|
Loading…
Reference in New Issue
Block a user