diff options
author | Zhu Yi <yi.zhu@intel.com> | 2007-09-26 23:27:37 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:53:23 -0400 |
commit | 93dc646adb94127ca1c2e74275a85265ec57b9af (patch) | |
tree | 02c194830bc93fd968e5e03a885ef21c8be6f30a /drivers | |
parent | 63fddb9f7f65b41277043344ae0d24dbbb451ada (diff) |
[PATCH] iwlwifi: add debugfs framework to rate scale
This patch adds debugfs handler to rate scale algorithms.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-rs.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c index 86e650dbddff..e849ab5aa80f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c | |||
@@ -1999,6 +1999,23 @@ static void rs_free_sta(void *priv, void *priv_sta) | |||
1999 | } | 1999 | } |
2000 | 2000 | ||
2001 | 2001 | ||
2002 | #ifdef CONFIG_MAC80211_DEBUGFS | ||
2003 | static void rs_add_debugfs(void *priv, void *priv_sta, | ||
2004 | struct dentry *dir) | ||
2005 | { | ||
2006 | /* struct iwl_rate_scale_priv *rs_priv = priv_sta; */ | ||
2007 | IWL_DEBUG_RATE("%s enter\n", __FUNCTION__); | ||
2008 | IWL_DEBUG_RATE("%s leave\n", __FUNCTION__); | ||
2009 | } | ||
2010 | |||
2011 | static void rs_remove_debugfs(void *priv, void *priv_sta) | ||
2012 | { | ||
2013 | /* struct iwl_rate_scale_priv *rs_priv = priv_sta; */ | ||
2014 | IWL_DEBUG_RATE("%s enter\n", __FUNCTION__); | ||
2015 | IWL_DEBUG_RATE("%s leave\n", __FUNCTION__); | ||
2016 | } | ||
2017 | #endif | ||
2018 | |||
2002 | static struct rate_control_ops rs_ops = { | 2019 | static struct rate_control_ops rs_ops = { |
2003 | .module = NULL, | 2020 | .module = NULL, |
2004 | .name = RS_NAME, | 2021 | .name = RS_NAME, |
@@ -2010,6 +2027,10 @@ static struct rate_control_ops rs_ops = { | |||
2010 | .free = rs_free, | 2027 | .free = rs_free, |
2011 | .alloc_sta = rs_alloc_sta, | 2028 | .alloc_sta = rs_alloc_sta, |
2012 | .free_sta = rs_free_sta, | 2029 | .free_sta = rs_free_sta, |
2030 | #ifdef CONFIG_MAC80211_DEBUGFS | ||
2031 | .add_sta_debugfs = rs_add_debugfs, | ||
2032 | .remove_sta_debugfs = rs_remove_debugfs, | ||
2033 | #endif | ||
2013 | }; | 2034 | }; |
2014 | 2035 | ||
2015 | int iwl_fill_rs_info(struct ieee80211_hw *hw, char *buf, u8 sta_id) | 2036 | int iwl_fill_rs_info(struct ieee80211_hw *hw, char *buf, u8 sta_id) |