aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wl18xx/main.c
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2012-06-25 17:46:40 +0300
committerJohn W. Linville <linville@tuxdriver.com>2012-07-10 12:10:12 -0400
commit4a1ccce852882c174d2392d2d8db1d65f48d4a10 (patch)
tree0dcf0b3644a48ac643450688ea0a1529d3296498 /drivers/net/wireless/ti/wl18xx/main.c
parent01b3c0e4df483affb076405f129aa45bc2cde499 (diff)
downloadkernel_goldelico_gta04-4a1ccce852882c174d2392d2d8db1d65f48d4a10.zip
kernel_goldelico_gta04-4a1ccce852882c174d2392d2d8db1d65f48d4a10.tar.gz
kernel_goldelico_gta04-4a1ccce852882c174d2392d2d8db1d65f48d4a10.tar.bz2
wlcore/wl12xx/wl18xx: check min FW version
Refuse to boot if the FW version is too old. The minimum version is set per chip, with the option of setting it per PG in the future. When boot fails because of an old FW, display a helpful message. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wl18xx/main.c')
-rw-r--r--drivers/net/wireless/ti/wl18xx/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c
index 16847ec..341e878 100644
--- a/drivers/net/wireless/ti/wl18xx/main.c
+++ b/drivers/net/wireless/ti/wl18xx/main.c
@@ -611,6 +611,10 @@ static int wl18xx_identify_chip(struct wl1271 *wl)
WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN |
WLCORE_QUIRK_NO_SCHED_SCAN_WHILE_CONN |
WLCORE_QUIRK_TX_PAD_LAST_FRAME;
+
+ wlcore_set_min_fw_ver(wl, WL18XX_CHIP_VER, WL18XX_IFTYPE_VER,
+ WL18XX_MAJOR_VER, WL18XX_SUBTYPE_VER,
+ WL18XX_MINOR_VER);
break;
case CHIP_ID_185x_PG10:
wl1271_warning("chip id 0x%x (185x PG10) is deprecated",