Skip to content

Commit

Permalink
b43: refuse to load unsupported firmware
Browse files Browse the repository at this point in the history
[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>
  • Loading branch information
Rafał Miłecki authored and Greg Kroah-Hartman committed Nov 21, 2011
1 parent 7608d6b commit 261a21f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/net/wireless/b43/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2508,6 +2508,13 @@ static int b43_upload_microcode(struct b43_wldev *dev)
b43_print_fw_helptext(dev->wl, 1);
err = -EOPNOTSUPP;
goto error;
} else if (fwrev >= 598) {
b43err(dev->wl, "YOUR FIRMWARE IS TOO NEW. Support for "
"firmware 598 and up requires kernel 3.2 or newer. You "
"have to install older firmware or upgrade kernel.\n");
b43_print_fw_helptext(dev->wl, 1);
err = -EOPNOTSUPP;
goto error;
}
dev->fw.rev = fwrev;
dev->fw.patch = fwpatch;
Expand Down

0 comments on commit 261a21f

Please sign in to comment.