020-04-rt61pci-use-entry-directly.patch 1.1 KB

12345678910111213141516171819202122232425262728
  1. From 80a97eae304631f57ff8560f87c0b18b95321443 Mon Sep 17 00:00:00 2001
  2. From: Stanislaw Gruszka <sgruszka@redhat.com>
  3. Date: Wed, 8 Feb 2017 13:51:29 +0100
  4. Subject: [PATCH 04/19] rt61pci: use entry directly
  5. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
  6. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  7. ---
  8. drivers/net/wireless/ralink/rt2x00/rt61pci.c | 3 +--
  9. 1 file changed, 1 insertion(+), 2 deletions(-)
  10. diff --git a/drivers/net/wireless/ralink/rt2x00/rt61pci.c b/drivers/net/wireless/ralink/rt2x00/rt61pci.c
  11. index 5306a3b2622d..8adb5f3abe15 100644
  12. --- a/drivers/net/wireless/ralink/rt2x00/rt61pci.c
  13. +++ b/drivers/net/wireless/ralink/rt2x00/rt61pci.c
  14. @@ -1903,8 +1903,7 @@ static void rt61pci_write_tx_desc(struct queue_entry *entry,
  15. rt2x00_desc_read(txd, 5, &word);
  16. rt2x00_set_field32(&word, TXD_W5_PID_TYPE, entry->queue->qid);
  17. - rt2x00_set_field32(&word, TXD_W5_PID_SUBTYPE,
  18. - skbdesc->entry->entry_idx);
  19. + rt2x00_set_field32(&word, TXD_W5_PID_SUBTYPE, entry->entry_idx);
  20. rt2x00_set_field32(&word, TXD_W5_TX_POWER,
  21. TXPOWER_TO_DEV(entry->queue->rt2x00dev->tx_power));
  22. rt2x00_set_field32(&word, TXD_W5_WAITING_DMA_DONE_INT, 1);
  23. --
  24. 2.12.1