aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2011-11-08 11:15:03 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-21 17:31:22 -0500
commit91ed232dabe5c813aa506c218223a484e78092eb (patch)
treecdcdbe4afc7c0c7780d6a5255b9123249e5f79ba /drivers/net
parent54e6e8d507358facee8b7f5dca27231914676fd8 (diff)
b43: refuse to load unsupported firmware
[This patch is supposed to be applied in 3.1 (and maybe older) branches only.] New kernels support newer firmware that users may try to incorrectly use with older kernels. Display error and explain the problem in such a case Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/b43/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index b1fe4fe322a..7c2e09a1cc0 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -2401,6 +2401,13 @@ static int b43_upload_microcode(struct b43_wldev *dev)
2401 b43_print_fw_helptext(dev->wl, 1); 2401 b43_print_fw_helptext(dev->wl, 1);
2402 err = -EOPNOTSUPP; 2402 err = -EOPNOTSUPP;
2403 goto error; 2403 goto error;
2404 } else if (fwrev >= 598) {
2405 b43err(dev->wl, "YOUR FIRMWARE IS TOO NEW. Support for "
2406 "firmware 598 and up requires kernel 3.2 or newer. You "
2407 "have to install older firmware or upgrade kernel.\n");
2408 b43_print_fw_helptext(dev->wl, 1);
2409 err = -EOPNOTSUPP;
2410 goto error;
2404 } 2411 }
2405 dev->fw.rev = fwrev; 2412 dev->fw.rev = fwrev;
2406 dev->fw.patch = fwpatch; 2413 dev->fw.patch = fwpatch;