aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00.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/rt2x00.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/rt2x00.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h
index 94fb571667fe..84bd6f19acb0 100644
--- a/drivers/net/wireless/rt2x00/rt2x00.h
+++ b/drivers/net/wireless/rt2x00/rt2x00.h
@@ -468,9 +468,10 @@ struct rt2x00lib_ops {
468 */ 468 */
469 int (*probe_hw) (struct rt2x00_dev *rt2x00dev); 469 int (*probe_hw) (struct rt2x00_dev *rt2x00dev);
470 char *(*get_firmware_name) (struct rt2x00_dev *rt2x00dev); 470 char *(*get_firmware_name) (struct rt2x00_dev *rt2x00dev);
471 u16 (*get_firmware_crc) (const void *data, const size_t len); 471 int (*check_firmware) (struct rt2x00_dev *rt2x00dev,
472 int (*load_firmware) (struct rt2x00_dev *rt2x00dev, const void *data, 472 const u8 *data, const size_t len);
473 const size_t len); 473 int (*load_firmware) (struct rt2x00_dev *rt2x00dev,
474 const u8 *data, const size_t len);
474 475
475 /* 476 /*
476 * Device initialization/deinitialization handlers. 477 * Device initialization/deinitialization handlers.