diff options
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index cd3bddb243b1..257d6443f6c7 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -181,15 +181,13 @@ static int wlan_cmd_802_11_set_wep(wlan_private * priv, | |||
181 | 181 | ||
182 | switch (pkey->len) { | 182 | switch (pkey->len) { |
183 | case KEY_LEN_WEP_40: | 183 | case KEY_LEN_WEP_40: |
184 | wep->keytype[i] = | 184 | wep->keytype[i] = (u8)CMD_TYPE_WEP_40_BIT; |
185 | cpu_to_le16(CMD_TYPE_WEP_40_BIT); | ||
186 | memmove(&wep->keymaterial[i], pkey->key, | 185 | memmove(&wep->keymaterial[i], pkey->key, |
187 | pkey->len); | 186 | pkey->len); |
188 | lbs_deb_cmd("SET_WEP: add key %d (40 bit)\n", i); | 187 | lbs_deb_cmd("SET_WEP: add key %d (40 bit)\n", i); |
189 | break; | 188 | break; |
190 | case KEY_LEN_WEP_104: | 189 | case KEY_LEN_WEP_104: |
191 | wep->keytype[i] = | 190 | wep->keytype[i] = (u8)CMD_TYPE_WEP_104_BIT; |
192 | cpu_to_le16(CMD_TYPE_WEP_104_BIT); | ||
193 | memmove(&wep->keymaterial[i], pkey->key, | 191 | memmove(&wep->keymaterial[i], pkey->key, |
194 | pkey->len); | 192 | pkey->len); |
195 | lbs_deb_cmd("SET_WEP: add key %d (104 bit)\n", i); | 193 | lbs_deb_cmd("SET_WEP: add key %d (104 bit)\n", i); |