]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mac80211: move sdata debugfs dir to vif
authorStanislaw Gruszka <sgruszka@redhat.com>
Fri, 8 Mar 2013 13:46:14 +0000 (14:46 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 18 Mar 2013 19:10:04 +0000 (20:10 +0100)
commitddbfe860acc39d4856a86186eb8a292426ea6224
tree56eac0dd8c6cc075472b850dc62e9d5b56345f65
parent488b366a452934141959384c7a1b52b22d6154ef
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>
include/net/mac80211.h
net/mac80211/debugfs_key.c
net/mac80211/debugfs_netdev.c
net/mac80211/driver-ops.h
net/mac80211/ieee80211_i.h