diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-07 07:56:45 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:06:10 -0500 |
commit | 83eacf233e62349c8a7282616fedc602ee95a555 (patch) | |
tree | d6e45c5e890f533097aac3a7190e1dc1a3e99e2e /drivers | |
parent | f9f6890e41815cfb8aa34fe9efb216fcc16eea9e (diff) |
libertas: Fix endianness in boot2_version handling.
We read it from the card. We byte-swap it. We write it back to the card.
D'oh.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/libertas/if_usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c index 4d89fd0f53ea..d5fc7d7ed537 100644 --- a/drivers/net/wireless/libertas/if_usb.c +++ b/drivers/net/wireless/libertas/if_usb.c | |||
@@ -227,7 +227,7 @@ static int if_usb_probe(struct usb_interface *intf, | |||
227 | priv->hw_host_to_card = if_usb_host_to_card; | 227 | priv->hw_host_to_card = if_usb_host_to_card; |
228 | priv->hw_get_int_status = if_usb_get_int_status; | 228 | priv->hw_get_int_status = if_usb_get_int_status; |
229 | priv->hw_read_event_cause = if_usb_read_event_cause; | 229 | priv->hw_read_event_cause = if_usb_read_event_cause; |
230 | priv->boot2_version = udev->descriptor.bcdDevice; | 230 | priv->boot2_version = le16_to_cpu(udev->descriptor.bcdDevice); |
231 | 231 | ||
232 | /* Delay 200 ms to waiting for the FW ready */ | 232 | /* Delay 200 ms to waiting for the FW ready */ |
233 | if_usb_submit_rx_urb(cardp); | 233 | if_usb_submit_rx_urb(cardp); |