aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00mac.c
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-08-29 15:05:45 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-29 16:24:12 -0400
commit2af0a570b45ec315f364ea2c8a6d072cfcaa9d32 (patch)
treec3570f4c9bb0d24bef857977e5251b04309b95ad /drivers/net/wireless/rt2x00/rt2x00mac.c
parent2575c11d6ee7266f0f035e55c5056b36597cd336 (diff)
rt2x00: Initialize txop during conf_tx() callback
The txop parameter is supported by rt61pci and rt73usb, and thus should be written to the register instead of using the fixed value set during initialization. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00mac.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00mac.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c
index 64292c227c96..56829fad3471 100644
--- a/drivers/net/wireless/rt2x00/rt2x00mac.c
+++ b/drivers/net/wireless/rt2x00/rt2x00mac.c
@@ -666,10 +666,11 @@ int rt2x00mac_conf_tx(struct ieee80211_hw *hw, u16 queue_idx,
666 queue->cw_max = 10; /* cw_min: 2^10 = 1024. */ 666 queue->cw_max = 10; /* cw_min: 2^10 = 1024. */
667 667
668 queue->aifs = params->aifs; 668 queue->aifs = params->aifs;
669 queue->txop = params->txop;
669 670
670 INFO(rt2x00dev, 671 INFO(rt2x00dev,
671 "Configured TX queue %d - CWmin: %d, CWmax: %d, Aifs: %d.\n", 672 "Configured TX queue %d - CWmin: %d, CWmax: %d, Aifs: %d, TXop: %d.\n",
672 queue_idx, queue->cw_min, queue->cw_max, queue->aifs); 673 queue_idx, queue->cw_min, queue->cw_max, queue->aifs, queue->txop);
673 674
674 return 0; 675 return 0;
675} 676}