diff options
-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) |