Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111211
b: refs/heads/master
c: 008c448
h: refs/heads/master
i:
  111209: 662c7c8
  111207: c2d5573
v: v3
  • Loading branch information
Ivo van Doorn authored and John W. Linville committed Aug 22, 2008
1 parent b969ea3 commit f923081
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 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: ba2ab47129eee76f6f0ef52b4beae30a12cee7f6
refs/heads/master: 008c44825db74c6cdcea13dfb1598896e74fe908
10 changes: 9 additions & 1 deletion trunk/drivers/net/wireless/rt2x00/rt61pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
#include "rt2x00pci.h"
#include "rt61pci.h"

/*
* Allow hardware encryption to be disabled.
*/
static int modparam_nohwcrypt = 0;
module_param_named(nohwcrypt, modparam_nohwcrypt, bool, S_IRUGO);
MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption.");

/*
* Register access.
* BBP and RF register require indirect register access,
Expand Down Expand Up @@ -2617,7 +2624,8 @@ static int rt61pci_probe_hw(struct rt2x00_dev *rt2x00dev)
*/
__set_bit(DRIVER_REQUIRE_FIRMWARE, &rt2x00dev->flags);
__set_bit(DRIVER_REQUIRE_DMA, &rt2x00dev->flags);
__set_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags);
if (!modparam_nohwcrypt)
__set_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags);

/*
* Set the rssi offset.
Expand Down
10 changes: 9 additions & 1 deletion trunk/drivers/net/wireless/rt2x00/rt73usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
#include "rt2x00usb.h"
#include "rt73usb.h"

/*
* Allow hardware encryption to be disabled.
*/
static int modparam_nohwcrypt = 0;
module_param_named(nohwcrypt, modparam_nohwcrypt, bool, S_IRUGO);
MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption.");

/*
* Register access.
* All access to the CSR registers will go through the methods
Expand Down Expand Up @@ -2211,7 +2218,8 @@ static int rt73usb_probe_hw(struct rt2x00_dev *rt2x00dev)
*/
__set_bit(DRIVER_REQUIRE_FIRMWARE, &rt2x00dev->flags);
__set_bit(DRIVER_REQUIRE_SCHEDULED, &rt2x00dev->flags);
__set_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags);
if (!modparam_nohwcrypt)
__set_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags);

/*
* Set the rssi offset.
Expand Down

0 comments on commit f923081

Please sign in to comment.