diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/xmit.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index fa12b9060b0b..a821bb687b3b 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
@@ -1648,7 +1648,7 @@ static int ath_tx_setup_buffer(struct ieee80211_hw *hw, struct ath_buf *bf, | |||
1648 | /* tag if this is a nullfunc frame to enable PS when AP acks it */ | 1648 | /* tag if this is a nullfunc frame to enable PS when AP acks it */ |
1649 | if (ieee80211_is_nullfunc(fc) && ieee80211_has_pm(fc)) { | 1649 | if (ieee80211_is_nullfunc(fc) && ieee80211_has_pm(fc)) { |
1650 | bf->bf_isnullfunc = true; | 1650 | bf->bf_isnullfunc = true; |
1651 | sc->sc_flags &= ~SC_OP_NULLFUNC_COMPLETED; | 1651 | sc->ps_flags &= ~PS_NULLFUNC_COMPLETED; |
1652 | } else | 1652 | } else |
1653 | bf->bf_isnullfunc = false; | 1653 | bf->bf_isnullfunc = false; |
1654 | 1654 | ||
@@ -1858,15 +1858,15 @@ static void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb, | |||
1858 | skb_pull(skb, padsize); | 1858 | skb_pull(skb, padsize); |
1859 | } | 1859 | } |
1860 | 1860 | ||
1861 | if (sc->sc_flags & SC_OP_WAIT_FOR_TX_ACK) { | 1861 | if (sc->ps_flags & PS_WAIT_FOR_TX_ACK) { |
1862 | sc->sc_flags &= ~SC_OP_WAIT_FOR_TX_ACK; | 1862 | sc->ps_flags &= ~PS_WAIT_FOR_TX_ACK; |
1863 | ath_print(common, ATH_DBG_PS, | 1863 | ath_print(common, ATH_DBG_PS, |
1864 | "Going back to sleep after having " | 1864 | "Going back to sleep after having " |
1865 | "received TX status (0x%x)\n", | 1865 | "received TX status (0x%x)\n", |
1866 | sc->sc_flags & (SC_OP_WAIT_FOR_BEACON | | 1866 | sc->ps_flags & (PS_WAIT_FOR_BEACON | |
1867 | SC_OP_WAIT_FOR_CAB | | 1867 | PS_WAIT_FOR_CAB | |
1868 | SC_OP_WAIT_FOR_PSPOLL_DATA | | 1868 | PS_WAIT_FOR_PSPOLL_DATA | |
1869 | SC_OP_WAIT_FOR_TX_ACK)); | 1869 | PS_WAIT_FOR_TX_ACK)); |
1870 | } | 1870 | } |
1871 | 1871 | ||
1872 | if (unlikely(tx_info->pad[0] & ATH_TX_INFO_FRAME_TYPE_INTERNAL)) | 1872 | if (unlikely(tx_info->pad[0] & ATH_TX_INFO_FRAME_TYPE_INTERNAL)) |
@@ -2053,11 +2053,11 @@ static void ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq) | |||
2053 | */ | 2053 | */ |
2054 | if (bf->bf_isnullfunc && | 2054 | if (bf->bf_isnullfunc && |
2055 | (ds->ds_txstat.ts_status & ATH9K_TX_ACKED)) { | 2055 | (ds->ds_txstat.ts_status & ATH9K_TX_ACKED)) { |
2056 | if ((sc->sc_flags & SC_OP_PS_ENABLED)) { | 2056 | if ((sc->ps_flags & PS_ENABLED)) { |
2057 | sc->ps_enabled = true; | 2057 | sc->ps_enabled = true; |
2058 | ath9k_hw_setrxabort(sc->sc_ah, 1); | 2058 | ath9k_hw_setrxabort(sc->sc_ah, 1); |
2059 | } else | 2059 | } else |
2060 | sc->sc_flags |= SC_OP_NULLFUNC_COMPLETED; | 2060 | sc->ps_flags |= PS_NULLFUNC_COMPLETED; |
2061 | } | 2061 | } |
2062 | 2062 | ||
2063 | /* | 2063 | /* |