Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=83eacf233e62349c8a7282616fedc602ee95a555
Commit:     83eacf233e62349c8a7282616fedc602ee95a555
Parent:     f9f6890e41815cfb8aa34fe9efb216fcc16eea9e
Author:     David Woodhouse <[EMAIL PROTECTED]>
AuthorDate: Fri Dec 7 12:56:45 2007 +0000
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:06:10 2008 -0800

    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 <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 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 4d89fd0..d5fc7d7 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,
        priv->hw_host_to_card = if_usb_host_to_card;
        priv->hw_get_int_status = if_usb_get_int_status;
        priv->hw_read_event_cause = if_usb_read_event_cause;
-       priv->boot2_version = udev->descriptor.bcdDevice;
+       priv->boot2_version = le16_to_cpu(udev->descriptor.bcdDevice);
 
        /* Delay 200 ms to waiting for the FW ready */
        if_usb_submit_rx_urb(cardp);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to