diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00usb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.c b/drivers/net/wireless/rt2x00/rt2x00usb.c index 892270dd3e7b..7627af6098eb 100644 --- a/drivers/net/wireless/rt2x00/rt2x00usb.c +++ b/drivers/net/wireless/rt2x00/rt2x00usb.c | |||
@@ -274,7 +274,7 @@ static void rt2x00usb_interrupt_txdone(struct urb *urb) | |||
274 | * Schedule the delayed work for reading the TX status | 274 | * Schedule the delayed work for reading the TX status |
275 | * from the device. | 275 | * from the device. |
276 | */ | 276 | */ |
277 | if (!test_bit(REQUIRE_TXSTATUS_FIFO, &rt2x00dev->cap_flags) || | 277 | if (!rt2x00_has_cap_flag(rt2x00dev, REQUIRE_TXSTATUS_FIFO) || |
278 | !kfifo_is_empty(&rt2x00dev->txstatus_fifo)) | 278 | !kfifo_is_empty(&rt2x00dev->txstatus_fifo)) |
279 | queue_work(rt2x00dev->workqueue, &rt2x00dev->txdone_work); | 279 | queue_work(rt2x00dev->workqueue, &rt2x00dev->txdone_work); |
280 | } | 280 | } |
@@ -456,7 +456,7 @@ static bool rt2x00usb_flush_entry(struct queue_entry *entry, void *data) | |||
456 | * Kill guardian urb (if required by driver). | 456 | * Kill guardian urb (if required by driver). |
457 | */ | 457 | */ |
458 | if ((entry->queue->qid == QID_BEACON) && | 458 | if ((entry->queue->qid == QID_BEACON) && |
459 | (test_bit(REQUIRE_BEACON_GUARD, &rt2x00dev->cap_flags))) | 459 | (rt2x00_has_cap_flag(rt2x00dev, REQUIRE_BEACON_GUARD))) |
460 | usb_kill_urb(bcn_priv->guardian_urb); | 460 | usb_kill_urb(bcn_priv->guardian_urb); |
461 | 461 | ||
462 | return false; | 462 | return false; |
@@ -655,7 +655,7 @@ static int rt2x00usb_alloc_entries(struct data_queue *queue) | |||
655 | * then we are done. | 655 | * then we are done. |
656 | */ | 656 | */ |
657 | if (queue->qid != QID_BEACON || | 657 | if (queue->qid != QID_BEACON || |
658 | !test_bit(REQUIRE_BEACON_GUARD, &rt2x00dev->cap_flags)) | 658 | !rt2x00_has_cap_flag(rt2x00dev, REQUIRE_BEACON_GUARD)) |
659 | return 0; | 659 | return 0; |
660 | 660 | ||
661 | for (i = 0; i < queue->limit; i++) { | 661 | for (i = 0; i < queue->limit; i++) { |
@@ -690,7 +690,7 @@ static void rt2x00usb_free_entries(struct data_queue *queue) | |||
690 | * then we are done. | 690 | * then we are done. |
691 | */ | 691 | */ |
692 | if (queue->qid != QID_BEACON || | 692 | if (queue->qid != QID_BEACON || |
693 | !test_bit(REQUIRE_BEACON_GUARD, &rt2x00dev->cap_flags)) | 693 | !rt2x00_has_cap_flag(rt2x00dev, REQUIRE_BEACON_GUARD)) |
694 | return; | 694 | return; |
695 | 695 | ||
696 | for (i = 0; i < queue->limit; i++) { | 696 | for (i = 0; i < queue->limit; i++) { |