diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2013-03-08 08:46:14 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-03-18 15:10:04 -0400 |
commit | ddbfe860acc39d4856a86186eb8a292426ea6224 (patch) | |
tree | 56eac0dd8c6cc075472b850dc62e9d5b56345f65 /include/net/mac80211.h | |
parent | 488b366a452934141959384c7a1b52b22d6154ef (diff) |
mac80211: move sdata debugfs dir to vif
There is need create driver own per interface debugfs files. This is
currently done by drv_{add,remove}_interface_debugfs() callbacks. But it
is possible that after we remove interface from the driver (i.e.
on suspend) we call drv_remove_interface_debugfs() function. Fixing this
problem will require to add call drv_{add,remove}_interface_debugfs()
anytime we create and remove interface in mac80211. So it's better to
add debugfs dir dentry to vif structure to allow to create/remove
custom debugfs driver files on drv_{add,remove}_interface().
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r-- | include/net/mac80211.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index f5db5e970428..8b2c7506f5cb 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -1067,6 +1067,9 @@ enum ieee80211_vif_flags { | |||
1067 | * path needing to access it; even though the netdev carrier will always | 1067 | * path needing to access it; even though the netdev carrier will always |
1068 | * be off when it is %NULL there can still be races and packets could be | 1068 | * be off when it is %NULL there can still be races and packets could be |
1069 | * processed after it switches back to %NULL. | 1069 | * processed after it switches back to %NULL. |
1070 | * @debugfs_dir: debugfs dentry, can be used by drivers to create own per | ||
1071 | * interface debug files. Note that it will be NULL for the virtual | ||
1072 | * monitor interface (if that is requested.) | ||
1070 | * @drv_priv: data area for driver use, will always be aligned to | 1073 | * @drv_priv: data area for driver use, will always be aligned to |
1071 | * sizeof(void *). | 1074 | * sizeof(void *). |
1072 | */ | 1075 | */ |
@@ -1083,6 +1086,10 @@ struct ieee80211_vif { | |||
1083 | 1086 | ||
1084 | u32 driver_flags; | 1087 | u32 driver_flags; |
1085 | 1088 | ||
1089 | #ifdef CONFIG_MAC80211_DEBUGFS | ||
1090 | struct dentry *debugfs_dir; | ||
1091 | #endif | ||
1092 | |||
1086 | /* must be last */ | 1093 | /* must be last */ |
1087 | u8 drv_priv[0] __aligned(sizeof(void *)); | 1094 | u8 drv_priv[0] __aligned(sizeof(void *)); |
1088 | }; | 1095 | }; |