Skip to content

Commit

Permalink
[PATCH] iwlwifi: add debugfs framework to rate scale
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhu Yi authored and David S. Miller committed Oct 10, 2007
1 parent 63fddb9 commit 93dc646
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions drivers/net/wireless/iwlwifi/iwl-4965-rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1999,6 +1999,23 @@ static void rs_free_sta(void *priv, void *priv_sta)
}


#ifdef CONFIG_MAC80211_DEBUGFS
static void rs_add_debugfs(void *priv, void *priv_sta,
struct dentry *dir)
{
/* struct iwl_rate_scale_priv *rs_priv = priv_sta; */
IWL_DEBUG_RATE("%s enter\n", __FUNCTION__);
IWL_DEBUG_RATE("%s leave\n", __FUNCTION__);
}

static void rs_remove_debugfs(void *priv, void *priv_sta)
{
/* struct iwl_rate_scale_priv *rs_priv = priv_sta; */
IWL_DEBUG_RATE("%s enter\n", __FUNCTION__);
IWL_DEBUG_RATE("%s leave\n", __FUNCTION__);
}
#endif

static struct rate_control_ops rs_ops = {
.module = NULL,
.name = RS_NAME,
Expand All @@ -2010,6 +2027,10 @@ static struct rate_control_ops rs_ops = {
.free = rs_free,
.alloc_sta = rs_alloc_sta,
.free_sta = rs_free_sta,
#ifdef CONFIG_MAC80211_DEBUGFS
.add_sta_debugfs = rs_add_debugfs,
.remove_sta_debugfs = rs_remove_debugfs,
#endif
};

int iwl_fill_rs_info(struct ieee80211_hw *hw, char *buf, u8 sta_id)
Expand Down

0 comments on commit 93dc646

Please sign in to comment.