diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-03-08 00:32:59 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-03-11 23:34:18 +0300 |
commit | 81266baf04ce80b088a7fa0dcf3b9f5e79023dd2 (patch) | |
tree | 2a5767181cf0b69726cd9b45ff6c5248f878fd79 /drivers/net/wireless/ath/ath5k/base.c | |
parent | 38c091590f6ed78fcaf114c14ce133e5b3f717e6 (diff) | |
download | linux-81266baf04ce80b088a7fa0dcf3b9f5e79023dd2.tar.xz |
ath5k: implement ieee80211_ops->{get,set}_ringparam
set_ringparam only allows changes to tx ring at this time.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/base.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index e6ff62e60a79..4d7f21ee111c 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c @@ -943,6 +943,7 @@ ath5k_txq_setup(struct ath5k_softc *sc, spin_lock_init(&txq->lock); txq->setup = true; txq->txq_len = 0; + txq->txq_max = ATH5K_TXQ_LEN_MAX; txq->txq_poll_mark = false; txq->txq_stuck = 0; } @@ -1534,7 +1535,7 @@ ath5k_tx_queue(struct ieee80211_hw *hw, struct sk_buff *skb, goto drop_packet; } - if (txq->txq_len >= ATH5K_TXQ_LEN_MAX) + if (txq->txq_len >= txq->txq_max) ieee80211_stop_queue(hw, txq->qnum); spin_lock_irqsave(&sc->txbuflock, flags); |