[PATCH] libertas: first pass at fixing up endianness issues
[sfrench/cifs-2.6.git] / drivers / net / wireless / libertas / if_bootcmd.c
index 70397a3eec7f0437e9e9d6d7993c551eb4d1d41b..8bca306ffad9e7e3b0916db45cbddbf4283a7851 100644 (file)
@@ -27,7 +27,7 @@ int if_usb_issue_boot_command(wlan_private *priv, int ivalue)
        int i;
 
        /* Prepare command */
-       sbootcmd.u32magicnumber = BOOT_CMD_MAGIC_NUMBER;
+       sbootcmd.u32magicnumber = cpu_to_le32(BOOT_CMD_MAGIC_NUMBER);
        sbootcmd.u8cmd_tag = ivalue;
        for (i=0; i<11; i++)
                sbootcmd.au8dumy[i]=0x00;