rt2x00: Reduce tx status reading timeout
authorIvo van Doorn <ivdoorn@gmail.com>
Sat, 30 Apr 2011 15:13:46 +0000 (17:13 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 May 2011 18:49:15 +0000 (14:49 -0400)
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>
drivers/net/wireless/rt2x00/rt2800usb.c

index 0d4e8fa3e1f8e065b15752093d106415e7427407..e4f82d2f341bce94681d4bf69244aa4d2a9ac8a1 100644 (file)
@@ -134,7 +134,7 @@ static void rt2800usb_tx_sta_fifo_read_completed(struct rt2x00_dev *rt2x00dev,
        } else if (!kfifo_is_empty(&rt2x00dev->txstatus_fifo)) {
                queue_work(rt2x00dev->workqueue, &rt2x00dev->txdone_work);
        } else if (rt2800usb_txstatus_pending(rt2x00dev)) {
-               mod_timer(&rt2x00dev->txstatus_timer, jiffies + msecs_to_jiffies(20));
+               mod_timer(&rt2x00dev->txstatus_timer, jiffies + msecs_to_jiffies(2));
        }
 }
 
@@ -493,7 +493,7 @@ static void rt2800usb_work_txdone(struct work_struct *work)
         * also delayed -> use a timer to retrieve it.
         */
        if (rt2800usb_txstatus_pending(rt2x00dev))
-               mod_timer(&rt2x00dev->txstatus_timer, jiffies + msecs_to_jiffies(20));
+               mod_timer(&rt2x00dev->txstatus_timer, jiffies + msecs_to_jiffies(2));
 }
 
 /*