aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c5
-rw-r--r--drivers/net/wireless/rt2x00/rt73usb.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index 3a7eccac8856..d81a8de9dc17 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -1199,6 +1199,11 @@ static int rt61pci_load_firmware(struct rt2x00_dev *rt2x00dev, const void *data,
1199 int i; 1199 int i;
1200 u32 reg; 1200 u32 reg;
1201 1201
1202 if (len != 8192) {
1203 ERROR(rt2x00dev, "Invalid firmware file length (len=%zu)\n", len);
1204 return -ENOENT;
1205 }
1206
1202 /* 1207 /*
1203 * Wait for stable hardware. 1208 * Wait for stable hardware.
1204 */ 1209 */
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c
index 60c43c11bc17..f854551be75d 100644
--- a/drivers/net/wireless/rt2x00/rt73usb.c
+++ b/drivers/net/wireless/rt2x00/rt73usb.c
@@ -1085,6 +1085,11 @@ static int rt73usb_load_firmware(struct rt2x00_dev *rt2x00dev, const void *data,
1085 int status; 1085 int status;
1086 u32 reg; 1086 u32 reg;
1087 1087
1088 if (len != 2048) {
1089 ERROR(rt2x00dev, "Invalid firmware file length (len=%zu)\n", len);
1090 return -ENOENT;
1091 }
1092
1088 /* 1093 /*
1089 * Wait for stable hardware. 1094 * Wait for stable hardware.
1090 */ 1095 */