wlcore: change way of checking the firmware version
authorLuciano Coelho <coelho@ti.com>
Tue, 27 Nov 2012 13:51:58 +0000 (15:51 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 4 Dec 2012 14:36:11 +0000 (16:36 +0200)
commitaf4e94c56581b446b2010854a983ef722ad9ed1f
tree1e3362a139af66087a0887b7bdf29b3cfd2cc10e
parentc3552c06256cf7ac787ab8db0d3c8317be48bba1
wlcore: change way of checking the firmware version

The firmwares version string contain 5 integers.  We used to consider
all the digits (except for the first one, which indicates the chip) as
linearly increasing version numbers.  This is not correct, because
some of the integers indicate type of firmware (eg. single-role
vs. multi-role) or the internal project it was created for.

Besides, this varies a bit from chip to chip, so we need to make the
firmware version checks more flexible (eg. allow the lower driver to
ignore some of the integers).  Additionally, we need to change the
code so that we only check for a linearly increasing number on the
fields where this actually makes sense.

Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/boot.c
drivers/net/wireless/ti/wlcore/wlcore.h