diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index e6a0c37d919..b6bb9644e25 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -1298,26 +1298,8 @@ static void rt2500pci_txdone(struct rt2x00_dev *rt2x00dev, const int queue) | |||
1298 | tx_status = rt2x00_get_field32(word, TXD_W0_RESULT); | 1298 | tx_status = rt2x00_get_field32(word, TXD_W0_RESULT); |
1299 | retry = rt2x00_get_field32(word, TXD_W0_RETRY_COUNT); | 1299 | retry = rt2x00_get_field32(word, TXD_W0_RETRY_COUNT); |
1300 | 1300 | ||
1301 | rt2x00lib_txdone(entry, tx_status, retry); | 1301 | rt2x00pci_txdone(rt2x00dev, entry, tx_status, retry); |
1302 | |||
1303 | /* | ||
1304 | * Make this entry available for reuse. | ||
1305 | */ | ||
1306 | entry->flags = 0; | ||
1307 | rt2x00_set_field32(&word, TXD_W0_VALID, 0); | ||
1308 | rt2x00_desc_write(txd, 0, word); | ||
1309 | rt2x00_ring_index_done_inc(ring); | ||
1310 | } | 1302 | } |
1311 | |||
1312 | /* | ||
1313 | * If the data ring was full before the txdone handler | ||
1314 | * we must make sure the packet queue in the mac80211 stack | ||
1315 | * is reenabled when the txdone handler has finished. | ||
1316 | */ | ||
1317 | entry = ring->entry; | ||
1318 | if (!rt2x00_ring_full(ring)) | ||
1319 | ieee80211_wake_queue(rt2x00dev->hw, | ||
1320 | entry->tx_status.control.queue); | ||
1321 | } | 1303 | } |
1322 | 1304 | ||
1323 | static irqreturn_t rt2500pci_interrupt(int irq, void *dev_instance) | 1305 | static irqreturn_t rt2500pci_interrupt(int irq, void *dev_instance) |