summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/rc.h
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2012-11-21 18:13:13 +0530
committerJohn W. Linville <linville@tuxdriver.com>2012-11-21 14:16:04 -0500
commit1c11e10b6a64f14427be518ccc2a242b73fc3d9f (patch)
tree8954346167be679b25e9443212b77a5ce9dd3923 /drivers/net/wireless/ath/ath9k/rc.h
parentc0b74876ee4873dc89d80b59f5e890a1d0a87be1 (diff)
downloadop-kernel-dev-1c11e10b6a64f14427be518ccc2a242b73fc3d9f.zip
op-kernel-dev-1c11e10b6a64f14427be518ccc2a242b73fc3d9f.tar.gz
ath9k: Fill remove_sta_debugfs() callback
Remove the rate control statistics debugfs file properly via remove_sta_debugfs(). Also, check for both MAC80211_DEBUGFS and ATH9K_DEBUGFS config options. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/rc.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/rc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.h b/drivers/net/wireless/ath/ath9k/rc.h
index 268e67d..528c83c 100644
--- a/drivers/net/wireless/ath/ath9k/rc.h
+++ b/drivers/net/wireless/ath/ath9k/rc.h
@@ -211,7 +211,9 @@ struct ath_rate_priv {
struct ath_rateset neg_ht_rates;
const struct ath_rate_table *rate_table;
+#if defined(CONFIG_MAC80211_DEBUGFS) && defined(CONFIG_ATH9K_DEBUGFS)
struct dentry *debugfs_rcstats;
+#endif
struct ath_rc_stats rcstats[RATE_TABLE_SIZE];
};
OpenPOWER on IntegriCloud