aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/xmit.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-02-17 05:06:33 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-27 14:52:39 -0500
commitf7a99e46bef0f56549a041e867708b2f63d2e81c (patch)
tree487279872beb4ee5b81b7632750e18367692d7b4 /drivers/net/wireless/ath9k/xmit.c
parentf34639d323ded9d12692fb236e1774408f2a4a2b (diff)
ath9k: Remove ath_txq_depth and get the queue depth directly
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/xmit.c')
-rw-r--r--drivers/net/wireless/ath9k/xmit.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath9k/xmit.c b/drivers/net/wireless/ath9k/xmit.c
index 3f70b1e58ae4..84fd3eef0010 100644
--- a/drivers/net/wireless/ath9k/xmit.c
+++ b/drivers/net/wireless/ath9k/xmit.c
@@ -772,11 +772,6 @@ bool ath_tx_aggr_check(struct ath_softc *sc, struct ath_node *an, u8 tidno)
772/* Queue Management */ 772/* Queue Management */
773/********************/ 773/********************/
774 774
775static u32 ath_txq_depth(struct ath_softc *sc, int qnum)
776{
777 return sc->tx.txq[qnum].axq_depth;
778}
779
780static void ath_get_beaconconfig(struct ath_softc *sc, int if_id, 775static void ath_get_beaconconfig(struct ath_softc *sc, int if_id,
781 struct ath_beacon_config *conf) 776 struct ath_beacon_config *conf)
782{ 777{
@@ -1657,7 +1652,7 @@ int ath_tx_start(struct ath_softc *sc, struct sk_buff *skb,
1657 * we will at least have to run TX completionon one buffer 1652 * we will at least have to run TX completionon one buffer
1658 * on the queue */ 1653 * on the queue */
1659 spin_lock_bh(&txq->axq_lock); 1654 spin_lock_bh(&txq->axq_lock);
1660 if (ath_txq_depth(sc, txq->axq_qnum) > 1) { 1655 if (sc->tx.txq[txq->axq_qnum].axq_depth > 1) {
1661 ieee80211_stop_queue(sc->hw, 1656 ieee80211_stop_queue(sc->hw,
1662 skb_get_queue_mapping(skb)); 1657 skb_get_queue_mapping(skb));
1663 txq->stopped = 1; 1658 txq->stopped = 1;
@@ -1867,7 +1862,7 @@ static void ath_wake_mac80211_queue(struct ath_softc *sc, struct ath_txq *txq)
1867 1862
1868 spin_lock_bh(&txq->axq_lock); 1863 spin_lock_bh(&txq->axq_lock);
1869 if (txq->stopped && 1864 if (txq->stopped &&
1870 ath_txq_depth(sc, txq->axq_qnum) <= (ATH_TXBUF - 20)) { 1865 sc->tx.txq[txq->axq_qnum].axq_depth <= (ATH_TXBUF - 20)) {
1871 qnum = ath_get_mac80211_qnum(txq->axq_qnum, sc); 1866 qnum = ath_get_mac80211_qnum(txq->axq_qnum, sc);
1872 if (qnum != -1) { 1867 if (qnum != -1) {
1873 ieee80211_wake_queue(sc->hw, qnum); 1868 ieee80211_wake_queue(sc->hw, qnum);