|
@@ -2175,7 +2175,7 @@ static void rt61pci_txdone(struct rt2x00_dev *rt2x00dev)
|
|
* that the TX_STA_FIFO stack has a size of 16. We stick to our
|
|
* that the TX_STA_FIFO stack has a size of 16. We stick to our
|
|
* tx ring size for now.
|
|
* tx ring size for now.
|
|
*/
|
|
*/
|
|
- for (i = 0; i < rt2x00dev->ops->tx->entry_num; i++) {
|
|
|
|
|
|
+ for (i = 0; i < rt2x00dev->tx->limit; i++) {
|
|
rt2x00mmio_register_read(rt2x00dev, STA_CSR4, ®);
|
|
rt2x00mmio_register_read(rt2x00dev, STA_CSR4, ®);
|
|
if (!rt2x00_get_field32(reg, STA_CSR4_VALID))
|
|
if (!rt2x00_get_field32(reg, STA_CSR4_VALID))
|
|
break;
|
|
break;
|