diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 96961b9a395c..4feb35aef990 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -148,6 +148,8 @@ static bool rt2800usb_txstatus_timeout(struct rt2x00_dev *rt2x00dev) | |||
148 | return false; | 148 | return false; |
149 | } | 149 | } |
150 | 150 | ||
151 | #define TXSTATUS_READ_INTERVAL 1000000 | ||
152 | |||
151 | static bool rt2800usb_tx_sta_fifo_read_completed(struct rt2x00_dev *rt2x00dev, | 153 | static bool rt2800usb_tx_sta_fifo_read_completed(struct rt2x00_dev *rt2x00dev, |
152 | int urb_status, u32 tx_status) | 154 | int urb_status, u32 tx_status) |
153 | { | 155 | { |
@@ -176,8 +178,9 @@ static bool rt2800usb_tx_sta_fifo_read_completed(struct rt2x00_dev *rt2x00dev, | |||
176 | queue_work(rt2x00dev->workqueue, &rt2x00dev->txdone_work); | 178 | queue_work(rt2x00dev->workqueue, &rt2x00dev->txdone_work); |
177 | 179 | ||
178 | if (rt2800usb_txstatus_pending(rt2x00dev)) { | 180 | if (rt2800usb_txstatus_pending(rt2x00dev)) { |
179 | /* Read register after 250 us */ | 181 | /* Read register after 1 ms */ |
180 | hrtimer_start(&rt2x00dev->txstatus_timer, ktime_set(0, 250000), | 182 | hrtimer_start(&rt2x00dev->txstatus_timer, |
183 | ktime_set(0, TXSTATUS_READ_INTERVAL), | ||
181 | HRTIMER_MODE_REL); | 184 | HRTIMER_MODE_REL); |
182 | return false; | 185 | return false; |
183 | } | 186 | } |
@@ -202,8 +205,9 @@ static void rt2800usb_async_read_tx_status(struct rt2x00_dev *rt2x00dev) | |||
202 | if (test_and_set_bit(TX_STATUS_READING, &rt2x00dev->flags)) | 205 | if (test_and_set_bit(TX_STATUS_READING, &rt2x00dev->flags)) |
203 | return; | 206 | return; |
204 | 207 | ||
205 | /* Read TX_STA_FIFO register after 500 us */ | 208 | /* Read TX_STA_FIFO register after 2 ms */ |
206 | hrtimer_start(&rt2x00dev->txstatus_timer, ktime_set(0, 500000), | 209 | hrtimer_start(&rt2x00dev->txstatus_timer, |
210 | ktime_set(0, 2*TXSTATUS_READ_INTERVAL), | ||
207 | HRTIMER_MODE_REL); | 211 | HRTIMER_MODE_REL); |
208 | } | 212 | } |
209 | 213 | ||