-stable review patch.  If anyone has any objections, please let us know.

------------------
From: Al Viro <[EMAIL PROTECTED]>

patch 5707708111ca6c4e9a1160acffdc98a98d95e462 in mainline.

        wep->keytype[] is u8

Signed-off-by: Al Viro <[EMAIL PROTECTED]>
Signed-off-by: Dan Williams <[EMAIL PROTECTED]>
Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>

---
 drivers/net/wireless/libertas/cmd.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

--- 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_
 
                        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;

-- 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to