diff options
| -rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 10 | ||||
| -rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 10 |
2 files changed, 18 insertions, 2 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. |
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index 4f2eb90aaf07..f58fd059c9a0 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
| @@ -37,6 +37,13 @@ | |||
| 37 | #include "rt73usb.h" | 37 | #include "rt73usb.h" |
| 38 | 38 | ||
| 39 | /* | 39 | /* |
| 40 | * Allow hardware encryption to be disabled. | ||
| 41 | */ | ||
| 42 | static int modparam_nohwcrypt = 0; | ||
| 43 | module_param_named(nohwcrypt, modparam_nohwcrypt, bool, S_IRUGO); | ||
| 44 | MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption."); | ||
| 45 | |||
| 46 | /* | ||
| 40 | * Register access. | 47 | * Register access. |
| 41 | * All access to the CSR registers will go through the methods | 48 | * All access to the CSR registers will go through the methods |
| 42 | * rt73usb_register_read and rt73usb_register_write. | 49 | * rt73usb_register_read and rt73usb_register_write. |
| @@ -2211,7 +2218,8 @@ static int rt73usb_probe_hw(struct rt2x00_dev *rt2x00dev) | |||
| 2211 | */ | 2218 | */ |
| 2212 | __set_bit(DRIVER_REQUIRE_FIRMWARE, &rt2x00dev->flags); | 2219 | __set_bit(DRIVER_REQUIRE_FIRMWARE, &rt2x00dev->flags); |
| 2213 | __set_bit(DRIVER_REQUIRE_SCHEDULED, &rt2x00dev->flags); | 2220 | __set_bit(DRIVER_REQUIRE_SCHEDULED, &rt2x00dev->flags); |
| 2214 | __set_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags); | 2221 | if (!modparam_nohwcrypt) |
| 2222 | __set_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags); | ||
| 2215 | 2223 | ||
| 2216 | /* | 2224 | /* |
| 2217 | * Set the rssi offset. | 2225 | * Set the rssi offset. |
