Skip to content

Commit

Permalink
libertas: Fix endianness in boot2_version handling.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Woodhouse authored and David S. Miller committed Jan 28, 2008
1 parent f9f6890 commit 83eacf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/libertas/if_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 83eacf2

Please sign in to comment.