diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-08-06 11:27:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-22 16:29:59 -0400 |
commit | 008c44825db74c6cdcea13dfb1598896e74fe908 (patch) | |
tree | 6fecad89bfd278a321b4d6e0cfe1098a0cc6b54f /drivers/net/wireless/rt2x00/rt61pci.c | |
parent | ba2ab47129eee76f6f0ef52b4beae30a12cee7f6 (diff) |
rt2x00: Add module parameter to disable HW crypto
Add a module parameter to rt61 and rt73 to disable
HW crypto. The option should only be checked when
determining if the SUPPORT_HW_CRYPTO flag should
be set or not.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt61pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index 0fcc45636834..23cf93dfda06 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -38,6 +38,13 @@ | |||
38 | #include "rt61pci.h" | 38 | #include "rt61pci.h" |
39 | 39 | ||
40 | /* | 40 | /* |
41 | * Allow hardware encryption to be disabled. | ||
42 | */ | ||
43 | static int modparam_nohwcrypt = 0; | ||
44 | module_param_named(nohwcrypt, modparam_nohwcrypt, bool, S_IRUGO); | ||
45 | MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption."); | ||
46 | |||
47 | /* | ||
41 | * Register access. | 48 | * Register access. |
42 | * BBP and RF register require indirect register access, | 49 | * BBP and RF register require indirect register access, |
43 | * and use the CSR registers PHY_CSR3 and PHY_CSR4 to achieve this. | 50 | * and use the CSR registers PHY_CSR3 and PHY_CSR4 to achieve this. |
@@ -2617,7 +2624,8 @@ static int rt61pci_probe_hw(struct rt2x00_dev *rt2x00dev) | |||
2617 | */ | 2624 | */ |
2618 | __set_bit(DRIVER_REQUIRE_FIRMWARE, &rt2x00dev->flags); | 2625 | __set_bit(DRIVER_REQUIRE_FIRMWARE, &rt2x00dev->flags); |
2619 | __set_bit(DRIVER_REQUIRE_DMA, &rt2x00dev->flags); | 2626 | __set_bit(DRIVER_REQUIRE_DMA, &rt2x00dev->flags); |
2620 | __set_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags); | 2627 | if (!modparam_nohwcrypt) |
2628 | __set_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags); | ||
2621 | 2629 | ||
2622 | /* | 2630 | /* |
2623 | * Set the rssi offset. | 2631 | * Set the rssi offset. |