diff options
author | Javier Cardona <javier@cozybit.com> | 2012-03-05 20:20:38 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-06 15:16:17 -0500 |
commit | 12ce8ba3eb09bb83509a459835917a3100ad8db1 (patch) | |
tree | c93d67241456469078092fd6127ec5649ed7c4cd /net/mac80211 | |
parent | 2f40b9404903dba89d70d706ee71263f9babd109 (diff) |
mac80211: Modify tsf via debugfs in mesh interfaces
Signed-off-by: Javier Cardona <javier@cozybit.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
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 |