diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-03 16:06:43 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-03 16:06:43 -0500 |
commit | fd95240568977ebd1ebb15b071464e0e392cde1a (patch) | |
tree | 6458cf8f33a8b8ab6a8098208de29c83206ca3aa /net/wireless/util.c | |
parent | cdfb74d4c2e3bcc9383121af2591d0ae15007ba7 (diff) | |
parent | fa9a741b841d0c2db04875310a06e8718c56fd4f (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'net/wireless/util.c')
-rw-r--r-- | net/wireless/util.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index 4ed065d8bb51..6a750bc6bcfe 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c | |||
@@ -167,12 +167,15 @@ int cfg80211_validate_key_settings(struct cfg80211_registered_device *rdev, | |||
167 | 167 | ||
168 | /* | 168 | /* |
169 | * Disallow pairwise keys with non-zero index unless it's WEP | 169 | * Disallow pairwise keys with non-zero index unless it's WEP |
170 | * (because current deployments use pairwise WEP keys with | 170 | * or a vendor specific cipher (because current deployments use |
171 | * non-zero indizes but 802.11i clearly specifies to use zero) | 171 | * pairwise WEP keys with non-zero indices and for vendor specific |
172 | * ciphers this should be validated in the driver or hardware level | ||
173 | * - but 802.11i clearly specifies to use zero) | ||
172 | */ | 174 | */ |
173 | if (pairwise && key_idx && | 175 | if (pairwise && key_idx && |
174 | params->cipher != WLAN_CIPHER_SUITE_WEP40 && | 176 | ((params->cipher == WLAN_CIPHER_SUITE_TKIP) || |
175 | params->cipher != WLAN_CIPHER_SUITE_WEP104) | 177 | (params->cipher == WLAN_CIPHER_SUITE_CCMP) || |
178 | (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC))) | ||
176 | return -EINVAL; | 179 | return -EINVAL; |
177 | 180 | ||
178 | switch (params->cipher) { | 181 | switch (params->cipher) { |