diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2011-04-30 11:13:46 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-02 14:49:15 -0400 |
commit | 16763478892c271293d02872475a67a648ae12fc (patch) | |
tree | 141843dfbd6de0fcb0bde6ad9f29b88deb1c368f /drivers/net/wireless/rt2x00 | |
parent | 816c04fe7ef01dd9649f5ccfe796474db8708be5 (diff) |
rt2x00: Reduce tx status reading timeout
When no TX status was available, the default timeout
of 20ms is a bit high. The frame is highly likely already
send out, so the TX status should be available within
only a few milliseconds.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 0d4e8fa3e1f8..e4f82d2f341b 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -134,7 +134,7 @@ static void rt2800usb_tx_sta_fifo_read_completed(struct rt2x00_dev *rt2x00dev, | |||
134 | } else if (!kfifo_is_empty(&rt2x00dev->txstatus_fifo)) { | 134 | } else if (!kfifo_is_empty(&rt2x00dev->txstatus_fifo)) { |
135 | queue_work(rt2x00dev->workqueue, &rt2x00dev->txdone_work); | 135 | queue_work(rt2x00dev->workqueue, &rt2x00dev->txdone_work); |
136 | } else if (rt2800usb_txstatus_pending(rt2x00dev)) { | 136 | } else if (rt2800usb_txstatus_pending(rt2x00dev)) { |
137 | mod_timer(&rt2x00dev->txstatus_timer, jiffies + msecs_to_jiffies(20)); | 137 | mod_timer(&rt2x00dev->txstatus_timer, jiffies + msecs_to_jiffies(2)); |
138 | } | 138 | } |
139 | } | 139 | } |
140 | 140 | ||
@@ -493,7 +493,7 @@ static void rt2800usb_work_txdone(struct work_struct *work) | |||
493 | * also delayed -> use a timer to retrieve it. | 493 | * also delayed -> use a timer to retrieve it. |
494 | */ | 494 | */ |
495 | if (rt2800usb_txstatus_pending(rt2x00dev)) | 495 | if (rt2800usb_txstatus_pending(rt2x00dev)) |
496 | mod_timer(&rt2x00dev->txstatus_timer, jiffies + msecs_to_jiffies(20)); | 496 | mod_timer(&rt2x00dev->txstatus_timer, jiffies + msecs_to_jiffies(2)); |
497 | } | 497 | } |
498 | 498 | ||
499 | /* | 499 | /* |