aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00reg.h
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2009-01-27 18:33:47 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-09 15:03:35 -0500
commit0cbe0064614ace61e08618948f82c6d525e75017 (patch)
treedc6f68d5da42ab6ada2fab2bd4e5fecfa6f1ed8c /drivers/net/wireless/rt2x00/rt2x00reg.h
parenta2c9b652a12a550d3d8509e9bae43bac396c5076 (diff)
rt2x00: Validate firmware in driver
The get_firmware_crc() callback function isn't flexible enough when dealing with multiple firmware versions. It might in some cases be possible that the firmware file contains multiple CRC checksums. Create the check_firmware() callback function where the driver has complete freedom in how to validate the firmware. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00reg.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00reg.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00reg.h b/drivers/net/wireless/rt2x00/rt2x00reg.h
index 9ddc2d07eef8..861322d97fce 100644
--- a/drivers/net/wireless/rt2x00/rt2x00reg.h
+++ b/drivers/net/wireless/rt2x00/rt2x00reg.h
@@ -135,6 +135,16 @@ enum rate_modulation {
135}; 135};
136 136
137/* 137/*
138 * Firmware validation error codes
139 */
140enum firmware_errors {
141 FW_OK,
142 FW_BAD_CRC,
143 FW_BAD_LENGTH,
144 FW_BAD_VERSION,
145};
146
147/*
138 * Register handlers. 148 * Register handlers.
139 * We store the position of a register field inside a field structure, 149 * We store the position of a register field inside a field structure,
140 * This will simplify the process of setting and reading a certain field 150 * This will simplify the process of setting and reading a certain field