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>
This commit is contained in:
committed by
John W. Linville
parent
a2c9b652a1
commit
0cbe006461
@ -468,9 +468,10 @@ struct rt2x00lib_ops {
|
||||
*/
|
||||
int (*probe_hw) (struct rt2x00_dev *rt2x00dev);
|
||||
char *(*get_firmware_name) (struct rt2x00_dev *rt2x00dev);
|
||||
u16 (*get_firmware_crc) (const void *data, const size_t len);
|
||||
int (*load_firmware) (struct rt2x00_dev *rt2x00dev, const void *data,
|
||||
const size_t len);
|
||||
int (*check_firmware) (struct rt2x00_dev *rt2x00dev,
|
||||
const u8 *data, const size_t len);
|
||||
int (*load_firmware) (struct rt2x00_dev *rt2x00dev,
|
||||
const u8 *data, const size_t len);
|
||||
|
||||
/*
|
||||
* Device initialization/deinitialization handlers.
|
||||
|
Reference in New Issue
Block a user