diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-03-09 17:44:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-13 16:02:36 -0400 |
commit | a7f3a06cbb63a16ad7a1720506591d8d12a03029 (patch) | |
tree | 8aa483a960b4ac9de30e6e1fcb28fdd900cde247 /drivers/net/wireless/rt2x00/rt2x00.h | |
parent | 5f46c4d0537a870f9d9c1fd998aa9d6dac682595 (diff) |
rt2x00: Move firmware checksumming to driver
rt2x00lib depended on 2 crc algorithms because rt61/rt73
use a different algorithm then rt2800. This means that
even when only 1 algorithm was needed, the dependency was
still present for both.
By moving the checksum generation to the driver we can clean
up 2 annoying flags (which indicated which checksum was required)
and move the dependency to where it belongs: the driver.
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.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index fd65fccbdae7..8718ad3dcc00 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -495,6 +495,7 @@ struct rt2x00lib_ops { | |||
495 | */ | 495 | */ |
496 | int (*probe_hw) (struct rt2x00_dev *rt2x00dev); | 496 | int (*probe_hw) (struct rt2x00_dev *rt2x00dev); |
497 | char *(*get_firmware_name) (struct rt2x00_dev *rt2x00dev); | 497 | char *(*get_firmware_name) (struct rt2x00_dev *rt2x00dev); |
498 | u16 (*get_firmware_crc) (void *data, const size_t len); | ||
498 | int (*load_firmware) (struct rt2x00_dev *rt2x00dev, void *data, | 499 | int (*load_firmware) (struct rt2x00_dev *rt2x00dev, void *data, |
499 | const size_t len); | 500 | const size_t len); |
500 | 501 | ||
@@ -613,8 +614,6 @@ enum rt2x00_flags { | |||
613 | */ | 614 | */ |
614 | DRIVER_SUPPORT_MIXED_INTERFACES, | 615 | DRIVER_SUPPORT_MIXED_INTERFACES, |
615 | DRIVER_REQUIRE_FIRMWARE, | 616 | DRIVER_REQUIRE_FIRMWARE, |
616 | DRIVER_REQUIRE_FIRMWARE_CRC_ITU_T, | ||
617 | DRIVER_REQUIRE_FIRMWARE_CCITT, | ||
618 | DRIVER_REQUIRE_BEACON_GUARD, | 617 | DRIVER_REQUIRE_BEACON_GUARD, |
619 | DRIVER_REQUIRE_ATIM_QUEUE, | 618 | DRIVER_REQUIRE_ATIM_QUEUE, |
620 | 619 | ||