diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-06-12 00:33:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-14 15:39:31 -0400 |
commit | 41f3e54d72cbf435f9ad04e02a10cd4597384841 (patch) | |
tree | 3349c159b0f1964adbb7608218e3872535edc665 /drivers/net/wireless/ath | |
parent | 97923b14a5a13e6d59b07eccfbb71f4981c00cb0 (diff) |
ath9k: add a debugfs entry for ignoring CCA on the extension channel in HT40
Debugfs requires a u32 for bool knobs though so we turn the
ath9k_hw knob into a u32 as well.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index a6cb48d9d2e5..54aae931424e 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c | |||
@@ -956,6 +956,10 @@ int ath9k_init_debug(struct ath_hw *ah) | |||
956 | sc->debug.debugfs_phy, sc, &fops_regval)) | 956 | sc->debug.debugfs_phy, sc, &fops_regval)) |
957 | goto err; | 957 | goto err; |
958 | 958 | ||
959 | if (!debugfs_create_bool("ignore_extcca", S_IRUSR | S_IWUSR, | ||
960 | sc->debug.debugfs_phy, &ah->config.cwm_ignore_extcca)) | ||
961 | goto err; | ||
962 | |||
959 | sc->debug.regidx = 0; | 963 | sc->debug.regidx = 0; |
960 | return 0; | 964 | return 0; |
961 | err: | 965 | err: |
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index ba84ac7ac4e2..20ec29f8bd8b 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -238,7 +238,7 @@ struct ath9k_ops_config { | |||
238 | int sw_beacon_response_time; | 238 | int sw_beacon_response_time; |
239 | int additional_swba_backoff; | 239 | int additional_swba_backoff; |
240 | int ack_6mb; | 240 | int ack_6mb; |
241 | int cwm_ignore_extcca; | 241 | u32 cwm_ignore_extcca; |
242 | u8 pcie_powersave_enable; | 242 | u8 pcie_powersave_enable; |
243 | u8 pcie_clock_req; | 243 | u8 pcie_clock_req; |
244 | u32 pcie_waen; | 244 | u32 pcie_waen; |