27 #include <linux/kernel.h>
28 #include <linux/module.h>
33 static int rt2x00lib_request_firmware(
struct rt2x00_dev *rt2x00dev)
43 fw_name = rt2x00dev->
ops->lib->get_firmware_name(rt2x00dev);
46 "Invalid firmware filename.\n"
51 INFO(rt2x00dev,
"Loading firmware file '%s'.\n", fw_name);
55 ERROR(rt2x00dev,
"Failed to request Firmware.\n");
60 ERROR(rt2x00dev,
"Failed to read Firmware.\n");
65 INFO(rt2x00dev,
"Firmware detected - version: %d.%d.\n",
68 sizeof(rt2x00dev->
hw->wiphy->fw_version),
"%d.%d",
71 retval = rt2x00dev->
ops->lib->check_firmware(rt2x00dev, fw->
data, fw->
size);
76 ERROR(rt2x00dev,
"Firmware checksum error.\n");
80 "Invalid firmware file length (len=%zu)\n", fw->
size);
84 "Current firmware does not support detected chipset.\n");
105 if (!rt2x00dev->
fw) {
106 retval = rt2x00lib_request_firmware(rt2x00dev);
114 retval = rt2x00dev->
ops->lib->load_firmware(rt2x00dev,
116 rt2x00dev->
fw->size);