Skip to content

Commit f7a99e4

Browse files
Sujithlinvjw
authored andcommitted
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>
1 parent f34639d commit f7a99e4

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

  • drivers/net/wireless/ath9k

‎drivers/net/wireless/ath9k/xmit.c‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -772,11 +772,6 @@ bool ath_tx_aggr_check(struct ath_softc *sc, struct ath_node *an, u8 tidno)
772772
/* Queue Management */
773773
/********************/
774774

775-
static u32 ath_txq_depth(struct ath_softc *sc, int qnum)
776-
{
777-
return sc->tx.txq[qnum].axq_depth;
778-
}
779-
780775
static void ath_get_beaconconfig(struct ath_softc *sc, int if_id,
781776
struct ath_beacon_config *conf)
782777
{
@@ -1657,7 +1652,7 @@ int ath_tx_start(struct ath_softc *sc, struct sk_buff *skb,
16571652
* we will at least have to run TX completionon one buffer
16581653
* on the queue */
16591654
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) {
16611656
ieee80211_stop_queue(sc->hw,
16621657
skb_get_queue_mapping(skb));
16631658
txq->stopped = 1;
@@ -1867,7 +1862,7 @@ static void ath_wake_mac80211_queue(struct ath_softc *sc, struct ath_txq *txq)
18671862

18681863
spin_lock_bh(&txq->axq_lock);
18691864
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)) {
18711866
qnum = ath_get_mac80211_qnum(txq->axq_qnum, sc);
18721867
if (qnum != -1) {
18731868
ieee80211_wake_queue(sc->hw, qnum);

0 commit comments

Comments
 (0)