diff options
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/host.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index 33dbed09fc72..1cbbd96fdbde 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -181,13 +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] = (u8)CMD_TYPE_WEP_40_BIT; | 184 | wep->keytype[i] = CMD_TYPE_WEP_40_BIT; |
185 | memmove(&wep->keymaterial[i], pkey->key, | 185 | memmove(&wep->keymaterial[i], pkey->key, |
186 | pkey->len); | 186 | pkey->len); |
187 | 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); |
188 | break; | 188 | break; |
189 | case KEY_LEN_WEP_104: | 189 | case KEY_LEN_WEP_104: |
190 | wep->keytype[i] = (u8)CMD_TYPE_WEP_104_BIT; | 190 | wep->keytype[i] = CMD_TYPE_WEP_104_BIT; |
191 | memmove(&wep->keymaterial[i], pkey->key, | 191 | memmove(&wep->keymaterial[i], pkey->key, |
192 | pkey->len); | 192 | pkey->len); |
193 | 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); |
diff --git a/drivers/net/wireless/libertas/host.h b/drivers/net/wireless/libertas/host.h index 68fa11b3a2dc..b37ddbca969f 100644 --- a/drivers/net/wireless/libertas/host.h +++ b/drivers/net/wireless/libertas/host.h | |||
@@ -138,8 +138,8 @@ | |||
138 | #define CMD_ACT_REMOVE 0x0004 | 138 | #define CMD_ACT_REMOVE 0x0004 |
139 | #define CMD_ACT_USE_DEFAULT 0x0008 | 139 | #define CMD_ACT_USE_DEFAULT 0x0008 |
140 | 140 | ||
141 | #define CMD_TYPE_WEP_40_BIT 0x0001 | 141 | #define CMD_TYPE_WEP_40_BIT 0x01 |
142 | #define CMD_TYPE_WEP_104_BIT 0x0002 | 142 | #define CMD_TYPE_WEP_104_BIT 0x02 |
143 | 143 | ||
144 | #define CMD_NUM_OF_WEP_KEYS 4 | 144 | #define CMD_NUM_OF_WEP_KEYS 4 |
145 | 145 | ||