diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00dev.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index 9bffe8438d1f..7776d9f1f297 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -200,7 +200,7 @@ void rt2x00lib_beacondone(struct rt2x00_dev *rt2x00dev) | |||
200 | * here as they will fetch the next beacon directly prior to | 200 | * here as they will fetch the next beacon directly prior to |
201 | * transmission. | 201 | * transmission. |
202 | */ | 202 | */ |
203 | if (test_bit(DRIVER_SUPPORT_PRE_TBTT_INTERRUPT, &rt2x00dev->flags)) | 203 | if (test_bit(CAPABILITY_PRE_TBTT_INTERRUPT, &rt2x00dev->cap_flags)) |
204 | return; | 204 | return; |
205 | 205 | ||
206 | /* fetch next beacon */ | 206 | /* fetch next beacon */ |
@@ -225,7 +225,7 @@ EXPORT_SYMBOL_GPL(rt2x00lib_pretbtt); | |||
225 | void rt2x00lib_dmastart(struct queue_entry *entry) | 225 | void rt2x00lib_dmastart(struct queue_entry *entry) |
226 | { | 226 | { |
227 | set_bit(ENTRY_OWNER_DEVICE_DATA, &entry->flags); | 227 | set_bit(ENTRY_OWNER_DEVICE_DATA, &entry->flags); |
228 | rt2x00queue_index_inc(entry->queue, Q_INDEX); | 228 | rt2x00queue_index_inc(entry, Q_INDEX); |
229 | } | 229 | } |
230 | EXPORT_SYMBOL_GPL(rt2x00lib_dmastart); | 230 | EXPORT_SYMBOL_GPL(rt2x00lib_dmastart); |
231 | 231 | ||
@@ -233,7 +233,7 @@ void rt2x00lib_dmadone(struct queue_entry *entry) | |||
233 | { | 233 | { |
234 | set_bit(ENTRY_DATA_STATUS_PENDING, &entry->flags); | 234 | set_bit(ENTRY_DATA_STATUS_PENDING, &entry->flags); |
235 | clear_bit(ENTRY_OWNER_DEVICE_DATA, &entry->flags); | 235 | clear_bit(ENTRY_OWNER_DEVICE_DATA, &entry->flags); |
236 | rt2x00queue_index_inc(entry->queue, Q_INDEX_DMA_DONE); | 236 | rt2x00queue_index_inc(entry, Q_INDEX_DMA_DONE); |
237 | } | 237 | } |
238 | EXPORT_SYMBOL_GPL(rt2x00lib_dmadone); | 238 | EXPORT_SYMBOL_GPL(rt2x00lib_dmadone); |
239 | 239 | ||
@@ -271,7 +271,7 @@ void rt2x00lib_txdone(struct queue_entry *entry, | |||
271 | /* | 271 | /* |
272 | * Remove L2 padding which was added during | 272 | * Remove L2 padding which was added during |
273 | */ | 273 | */ |
274 | if (test_bit(DRIVER_REQUIRE_L2PAD, &rt2x00dev->flags)) | 274 | if (test_bit(REQUIRE_L2PAD, &rt2x00dev->cap_flags)) |
275 | rt2x00queue_remove_l2pad(entry->skb, header_length); | 275 | rt2x00queue_remove_l2pad(entry->skb, header_length); |
276 | 276 | ||
277 | /* | 277 | /* |
@@ -280,7 +280,7 @@ void rt2x00lib_txdone(struct queue_entry *entry, | |||
280 | * mac80211 will expect the same data to be present it the | 280 | * mac80211 will expect the same data to be present it the |
281 | * frame as it was passed to us. | 281 | * frame as it was passed to us. |
282 | */ | 282 | */ |
283 | if (test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags)) | 283 | if (test_bit(CAPABILITY_HW_CRYPTO, &rt2x00dev->cap_flags)) |
284 | rt2x00crypto_tx_insert_iv(entry->skb, header_length); | 284 | rt2x00crypto_tx_insert_iv(entry->skb, header_length); |
285 | 285 | ||
286 | /* | 286 | /* |
@@ -377,7 +377,7 @@ void rt2x00lib_txdone(struct queue_entry *entry, | |||
377 | * send the status report back. | 377 | * send the status report back. |
378 | */ | 378 | */ |
379 | if (!(skbdesc_flags & SKBDESC_NOT_MAC80211)) { | 379 | if (!(skbdesc_flags & SKBDESC_NOT_MAC80211)) { |
380 | if (test_bit(DRIVER_REQUIRE_TASKLET_CONTEXT, &rt2x00dev->flags)) | 380 | if (test_bit(REQUIRE_TASKLET_CONTEXT, &rt2x00dev->cap_flags)) |
381 | ieee80211_tx_status(rt2x00dev->hw, entry->skb); | 381 | ieee80211_tx_status(rt2x00dev->hw, entry->skb); |
382 | else | 382 | else |
383 | ieee80211_tx_status_ni(rt2x00dev->hw, entry->skb); | 383 | ieee80211_tx_status_ni(rt2x00dev->hw, entry->skb); |
@@ -392,7 +392,7 @@ void rt2x00lib_txdone(struct queue_entry *entry, | |||
392 | 392 | ||
393 | rt2x00dev->ops->lib->clear_entry(entry); | 393 | rt2x00dev->ops->lib->clear_entry(entry); |
394 | 394 | ||
395 | rt2x00queue_index_inc(entry->queue, Q_INDEX_DONE); | 395 | rt2x00queue_index_inc(entry, Q_INDEX_DONE); |
396 | 396 | ||
397 | /* | 397 | /* |
398 | * If the data queue was below the threshold before the txdone | 398 | * If the data queue was below the threshold before the txdone |
@@ -559,7 +559,7 @@ void rt2x00lib_rxdone(struct queue_entry *entry) | |||
559 | 559 | ||
560 | submit_entry: | 560 | submit_entry: |
561 | entry->flags = 0; | 561 | entry->flags = 0; |
562 | rt2x00queue_index_inc(entry->queue, Q_INDEX_DONE); | 562 | rt2x00queue_index_inc(entry, Q_INDEX_DONE); |
563 | if (test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags) && | 563 | if (test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags) && |
564 | test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) | 564 | test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) |
565 | rt2x00dev->ops->lib->clear_entry(entry); | 565 | rt2x00dev->ops->lib->clear_entry(entry); |
@@ -806,15 +806,15 @@ static int rt2x00lib_probe_hw(struct rt2x00_dev *rt2x00dev) | |||
806 | /* | 806 | /* |
807 | * Take TX headroom required for alignment into account. | 807 | * Take TX headroom required for alignment into account. |
808 | */ | 808 | */ |
809 | if (test_bit(DRIVER_REQUIRE_L2PAD, &rt2x00dev->flags)) | 809 | if (test_bit(REQUIRE_L2PAD, &rt2x00dev->cap_flags)) |
810 | rt2x00dev->hw->extra_tx_headroom += RT2X00_L2PAD_SIZE; | 810 | rt2x00dev->hw->extra_tx_headroom += RT2X00_L2PAD_SIZE; |
811 | else if (test_bit(DRIVER_REQUIRE_DMA, &rt2x00dev->flags)) | 811 | else if (test_bit(REQUIRE_DMA, &rt2x00dev->cap_flags)) |
812 | rt2x00dev->hw->extra_tx_headroom += RT2X00_ALIGN_SIZE; | 812 | rt2x00dev->hw->extra_tx_headroom += RT2X00_ALIGN_SIZE; |
813 | 813 | ||
814 | /* | 814 | /* |
815 | * Allocate tx status FIFO for driver use. | 815 | * Allocate tx status FIFO for driver use. |
816 | */ | 816 | */ |
817 | if (test_bit(DRIVER_REQUIRE_TXSTATUS_FIFO, &rt2x00dev->flags)) { | 817 | if (test_bit(REQUIRE_TXSTATUS_FIFO, &rt2x00dev->cap_flags)) { |
818 | /* | 818 | /* |
819 | * Allocate the txstatus fifo. In the worst case the tx | 819 | * Allocate the txstatus fifo. In the worst case the tx |
820 | * status fifo has to hold the tx status of all entries | 820 | * status fifo has to hold the tx status of all entries |
@@ -1071,6 +1071,7 @@ void rt2x00lib_remove_dev(struct rt2x00_dev *rt2x00dev) | |||
1071 | /* | 1071 | /* |
1072 | * Stop all work. | 1072 | * Stop all work. |
1073 | */ | 1073 | */ |
1074 | del_timer_sync(&rt2x00dev->txstatus_timer); | ||
1074 | cancel_work_sync(&rt2x00dev->intf_work); | 1075 | cancel_work_sync(&rt2x00dev->intf_work); |
1075 | if (rt2x00_is_usb(rt2x00dev)) { | 1076 | if (rt2x00_is_usb(rt2x00dev)) { |
1076 | cancel_work_sync(&rt2x00dev->rxdone_work); | 1077 | cancel_work_sync(&rt2x00dev->rxdone_work); |