diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2010-08-23 13:54:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-25 14:34:55 -0400 |
commit | 54e34fbb6fae67b3dba4c2600d3c65aca81635ae (patch) | |
tree | 3be8b9b27bacb5c43a6ca21bbeba62551728fab0 /drivers | |
parent | 5eb7efe8a4807d98a277280e1317e5094eedfb6b (diff) |
rt2x00: Remove Q_INDEX_CRYPTO and ENTRY_OWNER_DEVICE_CRYPTO
Q_INDEX_CRYPTO and ENTRY_OWNER_DEVICE_CRYPTO where initially
added with the plan to implement hardware encryption for rt2500pci.
However there are no plans to do so anymore as the crypto
mechanism in rt2500pci is very different then any other Ralink
device.
So we can now safely remove the definitions, and don't think
about this feature anymore. :)
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00debug.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.h | 7 |
2 files changed, 3 insertions, 11 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00debug.c b/drivers/net/wireless/rt2x00/rt2x00debug.c index b0498e7e7aae..74f0d679883e 100644 --- a/drivers/net/wireless/rt2x00/rt2x00debug.c +++ b/drivers/net/wireless/rt2x00/rt2x00debug.c | |||
@@ -338,16 +338,15 @@ static ssize_t rt2x00debug_read_queue_stats(struct file *file, | |||
338 | return -ENOMEM; | 338 | return -ENOMEM; |
339 | 339 | ||
340 | temp = data + | 340 | temp = data + |
341 | sprintf(data, "qid\tcount\tlimit\tlength\tindex\tdone\tcrypto\n"); | 341 | sprintf(data, "qid\tcount\tlimit\tlength\tindex\tdone\n"); |
342 | 342 | ||
343 | queue_for_each(intf->rt2x00dev, queue) { | 343 | queue_for_each(intf->rt2x00dev, queue) { |
344 | spin_lock_irqsave(&queue->lock, irqflags); | 344 | spin_lock_irqsave(&queue->lock, irqflags); |
345 | 345 | ||
346 | temp += sprintf(temp, "%d\t%d\t%d\t%d\t%d\t%d\t%d\n", queue->qid, | 346 | temp += sprintf(temp, "%d\t%d\t%d\t%d\t%d\t%d\n", queue->qid, |
347 | queue->count, queue->limit, queue->length, | 347 | queue->count, queue->limit, queue->length, |
348 | queue->index[Q_INDEX], | 348 | queue->index[Q_INDEX], |
349 | queue->index[Q_INDEX_DONE], | 349 | queue->index[Q_INDEX_DONE]); |
350 | queue->index[Q_INDEX_CRYPTO]); | ||
351 | 350 | ||
352 | spin_unlock_irqrestore(&queue->lock, irqflags); | 351 | spin_unlock_irqrestore(&queue->lock, irqflags); |
353 | } | 352 | } |
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.h b/drivers/net/wireless/rt2x00/rt2x00queue.h index 46a3be1d82b9..c451a50f7a01 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.h +++ b/drivers/net/wireless/rt2x00/rt2x00queue.h | |||
@@ -360,9 +360,6 @@ struct txentry_desc { | |||
360 | * @ENTRY_OWNER_DEVICE_DATA: This entry is owned by the device for data | 360 | * @ENTRY_OWNER_DEVICE_DATA: This entry is owned by the device for data |
361 | * transfer (either TX or RX depending on the queue). The entry should | 361 | * transfer (either TX or RX depending on the queue). The entry should |
362 | * only be touched after the device has signaled it is done with it. | 362 | * only be touched after the device has signaled it is done with it. |
363 | * @ENTRY_OWNER_DEVICE_CRYPTO: This entry is owned by the device for data | ||
364 | * encryption or decryption. The entry should only be touched after | ||
365 | * the device has signaled it is done with it. | ||
366 | * @ENTRY_DATA_PENDING: This entry contains a valid frame and is waiting | 363 | * @ENTRY_DATA_PENDING: This entry contains a valid frame and is waiting |
367 | * for the signal to start sending. | 364 | * for the signal to start sending. |
368 | * @ENTRY_DATA_IO_FAILED: Hardware indicated that an IO error occured | 365 | * @ENTRY_DATA_IO_FAILED: Hardware indicated that an IO error occured |
@@ -372,7 +369,6 @@ struct txentry_desc { | |||
372 | enum queue_entry_flags { | 369 | enum queue_entry_flags { |
373 | ENTRY_BCN_ASSIGNED, | 370 | ENTRY_BCN_ASSIGNED, |
374 | ENTRY_OWNER_DEVICE_DATA, | 371 | ENTRY_OWNER_DEVICE_DATA, |
375 | ENTRY_OWNER_DEVICE_CRYPTO, | ||
376 | ENTRY_DATA_PENDING, | 372 | ENTRY_DATA_PENDING, |
377 | ENTRY_DATA_IO_FAILED | 373 | ENTRY_DATA_IO_FAILED |
378 | }; | 374 | }; |
@@ -408,15 +404,12 @@ struct queue_entry { | |||
408 | * @Q_INDEX_DONE: Index pointer to the next entry which will be completed by | 404 | * @Q_INDEX_DONE: Index pointer to the next entry which will be completed by |
409 | * the hardware and for which we need to run the txdone handler. If this | 405 | * the hardware and for which we need to run the txdone handler. If this |
410 | * entry is not owned by the hardware the queue is considered to be empty. | 406 | * entry is not owned by the hardware the queue is considered to be empty. |
411 | * @Q_INDEX_CRYPTO: Index pointer to the next entry which encryption/decription | ||
412 | * will be completed by the hardware next. | ||
413 | * @Q_INDEX_MAX: Keep last, used in &struct data_queue to determine the size | 407 | * @Q_INDEX_MAX: Keep last, used in &struct data_queue to determine the size |
414 | * of the index array. | 408 | * of the index array. |
415 | */ | 409 | */ |
416 | enum queue_index { | 410 | enum queue_index { |
417 | Q_INDEX, | 411 | Q_INDEX, |
418 | Q_INDEX_DONE, | 412 | Q_INDEX_DONE, |
419 | Q_INDEX_CRYPTO, | ||
420 | Q_INDEX_MAX, | 413 | Q_INDEX_MAX, |
421 | }; | 414 | }; |
422 | 415 | ||