aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmdresp.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-05-25 23:40:21 -0400
committerJohn W. Linville <linville@tuxdriver.com>2007-06-11 14:28:45 -0400
commite5b3d472ad4eaa9013fd9f67f7a1b132f3ec910c (patch)
treefda7ec7b1f9efa7ac32068a21eb3859e91daec60 /drivers/net/wireless/libertas/cmdresp.c
parent86760088a7c51ccc263ec3b8039ec9a7400a6d70 (diff)
[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.c7
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,
168 168
169 adapter->fwcapinfo = le32_to_cpu(hwspec->fwcapinfo); 169 adapter->fwcapinfo = le32_to_cpu(hwspec->fwcapinfo);
170 170
171 adapter->fwreleasenumber = le32_to_cpu(hwspec->fwreleasenumber); 171 memcpy(adapter->fwreleasenumber, hwspec->fwreleasenumber, 4);
172 172
173 lbs_deb_cmd("GET_HW_SPEC: FWReleaseVersion- 0x%X\n", 173 lbs_deb_cmd("GET_HW_SPEC: FWReleaseVersion- %u.%u.%u.p%u\n",
174 adapter->fwreleasenumber); 174 adapter->fwreleasenumber[2], adapter->fwreleasenumber[1],
175 adapter->fwreleasenumber[0], adapter->fwreleasenumber[3]);
175 lbs_deb_cmd("GET_HW_SPEC: Permanent addr- %2x:%2x:%2x:%2x:%2x:%2x\n", 176 lbs_deb_cmd("GET_HW_SPEC: Permanent addr- %2x:%2x:%2x:%2x:%2x:%2x\n",
176 hwspec->permanentaddr[0], hwspec->permanentaddr[1], 177 hwspec->permanentaddr[0], hwspec->permanentaddr[1],
177 hwspec->permanentaddr[2], hwspec->permanentaddr[3], 178 hwspec->permanentaddr[2], hwspec->permanentaddr[3],