diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2008-01-16 09:55:22 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:10:05 -0500 |
commit | dac10a9f286c75cffa75c7ec8b05d566a6ece95e (patch) | |
tree | 6b05b6427ec90091f8059de653708eec4a493639 /drivers/net/wireless/libertas/wext.c | |
parent | 4365929d176b47a78d10aca0d1dee2afdfcbe4f2 (diff) |
libertas: always show firmware release
Always shows the firmware release.
Also converts the firmware release into something that is easily comparable.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/wext.c')
-rw-r--r-- | drivers/net/wireless/libertas/wext.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c index 3e8d555ba3a9..e8bfc26b10a4 100644 --- a/drivers/net/wireless/libertas/wext.c +++ b/drivers/net/wireless/libertas/wext.c | |||
@@ -2071,17 +2071,11 @@ void lbs_get_fwversion(struct lbs_private *priv, char *fwversion, int maxlen) | |||
2071 | 2071 | ||
2072 | mutex_lock(&priv->lock); | 2072 | mutex_lock(&priv->lock); |
2073 | 2073 | ||
2074 | if (priv->fwreleasenumber[3] == 0) | 2074 | sprintf(fwver, "%u.%u.%u.p%u", |
2075 | sprintf(fwver, "%u.%u.%u", | 2075 | priv->fwrelease >> 24 & 0xff, |
2076 | priv->fwreleasenumber[2], | 2076 | priv->fwrelease >> 16 & 0xff, |
2077 | priv->fwreleasenumber[1], | 2077 | priv->fwrelease >> 8 & 0xff, |
2078 | priv->fwreleasenumber[0]); | 2078 | priv->fwrelease & 0xff); |
2079 | else | ||
2080 | sprintf(fwver, "%u.%u.%u.p%u", | ||
2081 | priv->fwreleasenumber[2], | ||
2082 | priv->fwreleasenumber[1], | ||
2083 | priv->fwreleasenumber[0], | ||
2084 | priv->fwreleasenumber[3]); | ||
2085 | 2079 | ||
2086 | mutex_unlock(&priv->lock); | 2080 | mutex_unlock(&priv->lock); |
2087 | snprintf(fwversion, maxlen, fwver); | 2081 | snprintf(fwversion, maxlen, fwver); |