diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-05-26 05:40:21 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-06-11 20:28:45 +0200 |
commit | e5b3d472ad4eaa9013fd9f67f7a1b132f3ec910c (patch) | |
tree | fda7ec7b1f9efa7ac32068a21eb3859e91daec60 /drivers/net/wireless/libertas/cmdresp.c | |
parent | [PATCH] libertas: more endianness fixes, in tx.c this time (diff) | |
download | linux-e5b3d472ad4eaa9013fd9f67f7a1b132f3ec910c.tar.xz linux-e5b3d472ad4eaa9013fd9f67f7a1b132f3ec910c.zip |
[PATCH] libertas: don't byte-swap firmware version number. It's a byte array.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmdresp.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmdresp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index e31d595e4753..9385df52d7a2 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c @@ -168,10 +168,11 @@ static int wlan_ret_get_hw_spec(wlan_private * priv, adapter->fwcapinfo = le32_to_cpu(hwspec->fwcapinfo); - adapter->fwreleasenumber = le32_to_cpu(hwspec->fwreleasenumber); + memcpy(adapter->fwreleasenumber, hwspec->fwreleasenumber, 4); - lbs_deb_cmd("GET_HW_SPEC: FWReleaseVersion- 0x%X\n", - adapter->fwreleasenumber); + lbs_deb_cmd("GET_HW_SPEC: FWReleaseVersion- %u.%u.%u.p%u\n", + adapter->fwreleasenumber[2], adapter->fwreleasenumber[1], + adapter->fwreleasenumber[0], adapter->fwreleasenumber[3]); lbs_deb_cmd("GET_HW_SPEC: Permanent addr- %2x:%2x:%2x:%2x:%2x:%2x\n", hwspec->permanentaddr[0], hwspec->permanentaddr[1], hwspec->permanentaddr[2], hwspec->permanentaddr[3], |