diff options
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/debugfs_netdev.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c index 9f484d8905fd..f6de8a65f402 100644 --- a/net/mac80211/debugfs_netdev.c +++ b/net/mac80211/debugfs_netdev.c | |||
@@ -538,11 +538,15 @@ static void add_monitor_files(struct ieee80211_sub_if_data *sdata) | |||
538 | 538 | ||
539 | #ifdef CONFIG_MAC80211_MESH | 539 | #ifdef CONFIG_MAC80211_MESH |
540 | 540 | ||
541 | static void add_mesh_files(struct ieee80211_sub_if_data *sdata) | ||
542 | { | ||
543 | DEBUGFS_ADD_MODE(tsf, 0600); | ||
544 | } | ||
545 | |||
541 | static void add_mesh_stats(struct ieee80211_sub_if_data *sdata) | 546 | static void add_mesh_stats(struct ieee80211_sub_if_data *sdata) |
542 | { | 547 | { |
543 | struct dentry *dir = debugfs_create_dir("mesh_stats", | 548 | struct dentry *dir = debugfs_create_dir("mesh_stats", |
544 | sdata->debugfs.dir); | 549 | sdata->debugfs.dir); |
545 | |||
546 | #define MESHSTATS_ADD(name)\ | 550 | #define MESHSTATS_ADD(name)\ |
547 | debugfs_create_file(#name, 0400, dir, sdata, &name##_ops); | 551 | debugfs_create_file(#name, 0400, dir, sdata, &name##_ops); |
548 | 552 | ||
@@ -595,6 +599,7 @@ static void add_files(struct ieee80211_sub_if_data *sdata) | |||
595 | switch (sdata->vif.type) { | 599 | switch (sdata->vif.type) { |
596 | case NL80211_IFTYPE_MESH_POINT: | 600 | case NL80211_IFTYPE_MESH_POINT: |
597 | #ifdef CONFIG_MAC80211_MESH | 601 | #ifdef CONFIG_MAC80211_MESH |
602 | add_mesh_files(sdata); | ||
598 | add_mesh_stats(sdata); | 603 | add_mesh_stats(sdata); |
599 | add_mesh_config(sdata); | 604 | add_mesh_config(sdata); |
600 | #endif | 605 | #endif |