projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7debca2
)
libertas: fix endianness breakage
author
Al Viro
<viro@ftp.linux.org.uk>
Wed, 10 Oct 2007 02:46:36 +0000
(22:46 -0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 16 Nov 2007 17:25:34 +0000
(09:25 -0800)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/libertas/cmd.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/libertas/cmd.c
b/drivers/net/wireless/libertas/cmd.c
index 4a8f5dc70239c48a0aebda7e23591b9a5d4bd578..86fff8de3d91409a76f6a2a83c5326d7d4e3d622 100644
(file)
--- a/
drivers/net/wireless/libertas/cmd.c
+++ b/
drivers/net/wireless/libertas/cmd.c
@@
-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;