aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00dev.c
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-02-03 09:48:38 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-02-29 15:19:28 -0500
commit9404ef34e4747228717d6e22ce3827ed366ccf41 (patch)
tree90f4a51af46519e42dcd638a3344ee664db539ec /drivers/net/wireless/rt2x00/rt2x00dev.c
parentadfdbb79c06154cd3cc7b5983106ace324aa3b02 (diff)
rt2x00: Driver requiring firmware should select crc algo
The driver should select what CRC algorithm is required when performing a checksum on the firmware. rt61pci & rt73usb require crc-itu-t rt2800pci & rt2800usb require crc-ccitt Legacy 2800pci/usb driver uses crc-itu-t + bit order reversion, but that is just inefficient especially since the end result is the same as a different algorithm which is also available as library. ;) 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/rt2x00dev.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00dev.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
index 7620427887b6..bc07c56f89b3 100644
--- a/drivers/net/wireless/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
@@ -1017,11 +1017,9 @@ int rt2x00lib_start(struct rt2x00_dev *rt2x00dev)
1017 * If this is the first interface which is added, 1017 * If this is the first interface which is added,
1018 * we should load the firmware now. 1018 * we should load the firmware now.
1019 */ 1019 */
1020 if (test_bit(DRIVER_REQUIRE_FIRMWARE, &rt2x00dev->flags)) { 1020 retval = rt2x00lib_load_firmware(rt2x00dev);
1021 retval = rt2x00lib_load_firmware(rt2x00dev); 1021 if (retval)
1022 if (retval) 1022 return retval;
1023 return retval;
1024 }
1025 1023
1026 /* 1024 /*
1027 * Initialize the device. 1025 * Initialize the device.