]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/wireless/ath/ath9k/xmit.c
ath9k: Fix bug in the way "bf_tx_aborted" of struct ath_buf is used
[net-next-2.6.git] / drivers / net / wireless / ath / ath9k / xmit.c
index 09cb13c4854c4b3b5283e1e70b2ec1665e458bbe..859aa4ab07698aafcd937b606cb7bafd7f4e05fe 100644 (file)
@@ -1728,6 +1728,8 @@ static int ath_tx_setup_buffer(struct ieee80211_hw *hw, struct ath_buf *bf,
        } else
                bf->bf_isnullfunc = false;
 
+       bf->bf_tx_aborted = false;
+
        return 0;
 }
 
@@ -1989,7 +1991,7 @@ static int ath_tx_num_badfrms(struct ath_softc *sc, struct ath_buf *bf,
        int nbad = 0;
        int isaggr = 0;
 
-       if (bf->bf_tx_aborted)
+       if (bf->bf_lastbf->bf_tx_aborted)
                return 0;
 
        isaggr = bf_isaggr(bf);