]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ath9k: add a debugfs entry for ignoring CCA on the extension channel in HT40
authorFelix Fietkau <nbd@openwrt.org>
Sat, 12 Jun 2010 04:33:56 +0000 (00:33 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 Jun 2010 19:39:31 +0000 (15:39 -0400)
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>
drivers/net/wireless/ath/ath9k/debug.c
drivers/net/wireless/ath/ath9k/hw.h

index a6cb48d9d2e56a3f3d546d5845322c3e2a822375..54aae931424e69aa5cecc534ee0b8f03303383c7 100644 (file)
@@ -956,6 +956,10 @@ int ath9k_init_debug(struct ath_hw *ah)
                        sc->debug.debugfs_phy, sc, &fops_regval))
                goto err;
 
+       if (!debugfs_create_bool("ignore_extcca", S_IRUSR | S_IWUSR,
+                       sc->debug.debugfs_phy, &ah->config.cwm_ignore_extcca))
+               goto err;
+
        sc->debug.regidx = 0;
        return 0;
 err:
index ba84ac7ac4e224f43ee40b8d747127f068b7ded3..20ec29f8bd8b2038b1585d17727937fa7915d0d7 100644 (file)
@@ -238,7 +238,7 @@ struct ath9k_ops_config {
        int sw_beacon_response_time;
        int additional_swba_backoff;
        int ack_6mb;
-       int cwm_ignore_extcca;
+       u32 cwm_ignore_extcca;
        u8 pcie_powersave_enable;
        u8 pcie_clock_req;
        u32 pcie_waen;