diff options
Diffstat (limited to 'net/mac80211/rc80211_minstrel.c')
-rw-r--r-- | net/mac80211/rc80211_minstrel.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/mac80211/rc80211_minstrel.c b/net/mac80211/rc80211_minstrel.c index 8adac67395f7..58a89554b788 100644 --- a/net/mac80211/rc80211_minstrel.c +++ b/net/mac80211/rc80211_minstrel.c | |||
@@ -532,12 +532,21 @@ minstrel_alloc(struct ieee80211_hw *hw, struct dentry *debugfsdir) | |||
532 | mp->hw = hw; | 532 | mp->hw = hw; |
533 | mp->update_interval = 100; | 533 | mp->update_interval = 100; |
534 | 534 | ||
535 | #ifdef CONFIG_MAC80211_DEBUGFS | ||
536 | mp->fixed_rate_idx = (u32) -1; | ||
537 | mp->dbg_fixed_rate = debugfs_create_u32("fixed_rate_idx", | ||
538 | S_IRUGO | S_IWUGO, debugfsdir, &mp->fixed_rate_idx); | ||
539 | #endif | ||
540 | |||
535 | return mp; | 541 | return mp; |
536 | } | 542 | } |
537 | 543 | ||
538 | static void | 544 | static void |
539 | minstrel_free(void *priv) | 545 | minstrel_free(void *priv) |
540 | { | 546 | { |
547 | #ifdef CONFIG_MAC80211_DEBUGFS | ||
548 | debugfs_remove(((struct minstrel_priv *)priv)->dbg_fixed_rate); | ||
549 | #endif | ||
541 | kfree(priv); | 550 | kfree(priv); |
542 | } | 551 | } |
543 | 552 | ||