Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159175
b: refs/heads/master
c: 1f00fca
h: refs/heads/master
i:
  159173: bc2c2bb
  159171: b94f807
  159167: fef3d96
v: v3
  • Loading branch information
Zhu Yi authored and John W. Linville committed Jul 24, 2009
1 parent 210ae65 commit be62224
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: e6a3f551bc236010c4d4d99e626e150e98a4c3e6
refs/heads/master: 1f00fca5c83c1bc5b4ca7e07f2a030bc39c130f2
3 changes: 2 additions & 1 deletion trunk/net/wireless/wext-compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,8 @@ static int __cfg80211_set_encryption(struct cfg80211_registered_device *rdev,
wdev->wext.keys->data[idx];
}

if (params->cipher != WLAN_CIPHER_SUITE_AES_CMAC &&
if ((params->cipher == WLAN_CIPHER_SUITE_WEP40 ||
params->cipher == WLAN_CIPHER_SUITE_WEP104) &&
(tx_key || (!addr && wdev->wext.default_key == -1))) {
if (wdev->current_bss)
err = rdev->ops->set_default_key(&rdev->wiphy,
Expand Down

0 comments on commit be62224

Please sign in to comment.