Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21229
b: refs/heads/master
c: 22d8846
h: refs/heads/master
i:
  21227: 5a1d225
v: v3
  • Loading branch information
Dan Williams authored and John W. Linville committed Feb 17, 2006
1 parent 81ddf0d commit 86f340e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ba61e05e254a587b7a6be9484a8bcd973551be1
refs/heads/master: 22d8846e5ce329436628da71a4239ccc2745869f
11 changes: 8 additions & 3 deletions trunk/drivers/net/wireless/airo.c
Original file line number Diff line number Diff line change
Expand Up @@ -6266,7 +6266,7 @@ static int airo_set_encodeext(struct net_device *dev,
CapabilityRid cap_rid; /* Card capability info */
int perm = ( encoding->flags & IW_ENCODE_TEMP ? 0 : 1 );
u16 currentAuthType = local->config.authType;
int idx, key_len, alg = ext->alg; /* Check encryption mode */
int idx, key_len, alg = ext->alg, set_key = 1;
wep_key_t key;

/* Is WEP supported ? */
Expand All @@ -6289,10 +6289,15 @@ static int airo_set_encodeext(struct net_device *dev,
if (encoding->flags & IW_ENCODE_DISABLED)
alg = IW_ENCODE_ALG_NONE;

/* Just setting the transmit key? */
if (ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY) {
/* Only set transmit key index here, actual
* key is set below if needed.
*/
set_wep_key(local, idx, NULL, 0, perm, 1);
} else {
set_key = ext->key_len > 0 ? 1 : 0;
}

if (set_key) {
/* Set the requested key first */
memset(key.key, 0, MAX_KEY_SIZE);
switch (alg) {
Expand Down

0 comments on commit 86f340e

Please sign in to comment.