diff options
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index 08240f813ef4..cdaf93f48263 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -351,6 +351,14 @@ static int rt2500usb_config_key(struct rt2x00_dev *rt2x00dev, | |||
351 | 351 | ||
352 | if (crypto->cmd == SET_KEY) { | 352 | if (crypto->cmd == SET_KEY) { |
353 | /* | 353 | /* |
354 | * Disallow to set WEP key other than with index 0, | ||
355 | * it is known that not work at least on some hardware. | ||
356 | * SW crypto will be used in that case. | ||
357 | */ | ||
358 | if (key->alg == ALG_WEP && key->keyidx != 0) | ||
359 | return -EOPNOTSUPP; | ||
360 | |||
361 | /* | ||
354 | * Pairwise key will always be entry 0, but this | 362 | * Pairwise key will always be entry 0, but this |
355 | * could collide with a shared key on the same | 363 | * could collide with a shared key on the same |
356 | * position... | 364 | * position... |