diff options
author | Wey-Yi Guy | 2009-07-27 22:50:15 +0200 |
---|---|---|
committer | John W. Linville | 2009-07-29 21:46:23 +0200 |
commit | 1e4247d457c6a42e4a05cb7dfa4e6ea1fa65c112 (patch) | |
tree | 87e9a6298904525faf4200e9dfa47d3d24d8efbe /drivers/net/wireless/iwlwifi/iwl-core.c | |
parent | ath9k: remove unused ATH_PCI_VERSION (diff) | |
download | kernel-qcow2-linux-1e4247d457c6a42e4a05cb7dfa4e6ea1fa65c112.tar.gz kernel-qcow2-linux-1e4247d457c6a42e4a05cb7dfa4e6ea1fa65c112.tar.xz kernel-qcow2-linux-1e4247d457c6a42e4a05cb7dfa4e6ea1fa65c112.zip |
iwlwifi: debugFs to enable/disable HT40 support
Add debugfs file to enable/disable HT40(40MHz) channel support.
By default, 40MHz is supported if AP can support the function.
By echo "1" to "disable_ht40" file, iwlwifi driver will disable the
40MHz support and only allow 20MHz channel.
Because the information exchange happen during association time,
so enable/disable ht40 channel only can be performed when it is not
associated with AP.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index aafa9fdd6476..8570d56b3124 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c @@ -632,6 +632,10 @@ u8 iwl_is_fat_tx_allowed(struct iwl_priv *priv, if (!sta_ht_inf->ht_supported) return 0; } +#ifdef CONFIG_IWLWIFI_DEBUG + if (priv->disable_ht40) + return 0; +#endif return iwl_is_channel_extension(priv, priv->band, le16_to_cpu(priv->staging_rxon.channel), iwl_ht_conf->extension_chan_offset); |