rt2x00: Introduce extra queue entry sanity flag
Add a queue entry flag ENTRY_DATA_STATUS_PENDING, which can be used to indicate a queue entry has returned from the hardware and is waiting for status processing. Using this flag we can add some extra sanity checks to prevent queue corruption. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Acked-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
64e7d72384
commit
dba5dc1ae9
@@ -340,12 +340,16 @@ struct txentry_desc {
|
||||
* @ENTRY_DATA_IO_FAILED: Hardware indicated that an IO error occured
|
||||
* while transfering the data to the hardware. No TX status report will
|
||||
* be expected from the hardware.
|
||||
* @ENTRY_DATA_STATUS_PENDING: The entry has been send to the device and
|
||||
* returned. It is now waiting for the status reporting before the
|
||||
* entry can be reused again.
|
||||
*/
|
||||
enum queue_entry_flags {
|
||||
ENTRY_BCN_ASSIGNED,
|
||||
ENTRY_OWNER_DEVICE_DATA,
|
||||
ENTRY_DATA_PENDING,
|
||||
ENTRY_DATA_IO_FAILED
|
||||
ENTRY_DATA_IO_FAILED,
|
||||
ENTRY_DATA_STATUS_PENDING,
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user