]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
libertas: fix endianness breakage
authorAl Viro <viro@ftp.linux.org.uk>
Wed, 10 Oct 2007 02:46:36 +0000 (22:46 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 2 Nov 2007 15:44:11 +0000 (08:44 -0700)
patch 5707708111ca6c4e9a1160acffdc98a98d95e462 in mainline.

wep->keytype[] is u8

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmd.c

index 13f6528abb00d22370eff0626b1927bcedca79aa..549749ea063eb9f2f2cd2c4c2828791f7c00106c 100644 (file)
@@ -185,14 +185,12 @@ static int wlan_cmd_802_11_set_wep(wlan_private * priv,
 
                        switch (pkey->len) {
                        case KEY_LEN_WEP_40:
-                               wep->keytype[i] =
-                                       cpu_to_le16(cmd_type_wep_40_bit);
+                               wep->keytype[i] = cmd_type_wep_40_bit;
                                memmove(&wep->keymaterial[i], pkey->key,
                                        pkey->len);
                                break;
                        case KEY_LEN_WEP_104:
-                               wep->keytype[i] =
-                                       cpu_to_le16(cmd_type_wep_104_bit);
+                               wep->keytype[i] = cmd_type_wep_104_bit;
                                memmove(&wep->keymaterial[i], pkey->key,
                                        pkey->len);
                                break;