diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-12-13 03:07:40 -0500 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-12-19 16:17:55 -0500 |
commit | 7428994d7991c662d77fc5212a9e42de34c05335 (patch) | |
tree | 28ec4e480501be449494deaf08ca85a6671b5553 /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | b80667eee2af9c1a36ec45a06f9ff85dd8768412 (diff) |
iwlagn: finer-grained HT disable
At least while debugging, a lot of people use
11n_disable=1 to disable HT completely. To be
able to figure out what parts of HT cause the
problems we see, make the parameter a bitmap,
allowing to disable all of HT and aggregation
(TX/RX) separately.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index b2d95e867131..9daa4d970d02 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -1668,7 +1668,7 @@ static int iwl_set_hw_params(struct iwl_priv *priv) | |||
1668 | hw_params(priv).rx_page_order = | 1668 | hw_params(priv).rx_page_order = |
1669 | get_order(IWL_RX_BUF_SIZE_4K); | 1669 | get_order(IWL_RX_BUF_SIZE_4K); |
1670 | 1670 | ||
1671 | if (iwlagn_mod_params.disable_11n) | 1671 | if (iwlagn_mod_params.disable_11n & IWL_DISABLE_HT_ALL) |
1672 | cfg(priv)->sku &= ~EEPROM_SKU_CAP_11N_ENABLE; | 1672 | cfg(priv)->sku &= ~EEPROM_SKU_CAP_11N_ENABLE; |
1673 | 1673 | ||
1674 | hw_params(priv).num_ampdu_queues = | 1674 | hw_params(priv).num_ampdu_queues = |
@@ -1995,8 +1995,9 @@ module_param_named(swcrypto, iwlagn_mod_params.sw_crypto, int, S_IRUGO); | |||
1995 | MODULE_PARM_DESC(swcrypto, "using crypto in software (default 0 [hardware])"); | 1995 | MODULE_PARM_DESC(swcrypto, "using crypto in software (default 0 [hardware])"); |
1996 | module_param_named(queues_num, iwlagn_mod_params.num_of_queues, int, S_IRUGO); | 1996 | module_param_named(queues_num, iwlagn_mod_params.num_of_queues, int, S_IRUGO); |
1997 | MODULE_PARM_DESC(queues_num, "number of hw queues."); | 1997 | MODULE_PARM_DESC(queues_num, "number of hw queues."); |
1998 | module_param_named(11n_disable, iwlagn_mod_params.disable_11n, int, S_IRUGO); | 1998 | module_param_named(11n_disable, iwlagn_mod_params.disable_11n, uint, S_IRUGO); |
1999 | MODULE_PARM_DESC(11n_disable, "disable 11n functionality"); | 1999 | MODULE_PARM_DESC(11n_disable, |
2000 | "disable 11n functionality, bitmap: 1: full, 2: agg TX, 4: agg RX"); | ||
2000 | module_param_named(amsdu_size_8K, iwlagn_mod_params.amsdu_size_8K, | 2001 | module_param_named(amsdu_size_8K, iwlagn_mod_params.amsdu_size_8K, |
2001 | int, S_IRUGO); | 2002 | int, S_IRUGO); |
2002 | MODULE_PARM_DESC(amsdu_size_8K, "enable 8K amsdu size"); | 2003 | MODULE_PARM_DESC(amsdu_size_8K, "enable 8K amsdu size"); |