aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/debugfs_netdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/debugfs_netdev.c')
-rw-r--r--net/mac80211/debugfs_netdev.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c
index a3e01d76d503..799a9208c4b4 100644
--- a/net/mac80211/debugfs_netdev.c
+++ b/net/mac80211/debugfs_netdev.c
@@ -397,6 +397,8 @@ static int netdev_notify(struct notifier_block * nb,
397 void *ndev) 397 void *ndev)
398{ 398{
399 struct net_device *dev = ndev; 399 struct net_device *dev = ndev;
400 struct dentry *dir;
401 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
400 char buf[10+IFNAMSIZ]; 402 char buf[10+IFNAMSIZ];
401 403
402 if (state != NETDEV_CHANGENAME) 404 if (state != NETDEV_CHANGENAME)
@@ -408,10 +410,11 @@ static int netdev_notify(struct notifier_block * nb,
408 if (dev->ieee80211_ptr->wiphy->privid != mac80211_wiphy_privid) 410 if (dev->ieee80211_ptr->wiphy->privid != mac80211_wiphy_privid)
409 return 0; 411 return 0;
410 412
411 /* TODO
412 sprintf(buf, "netdev:%s", dev->name); 413 sprintf(buf, "netdev:%s", dev->name);
413 debugfs_rename(IEEE80211_DEV_TO_SUB_IF(dev)->debugfsdir, buf); 414 dir = sdata->debugfsdir;
414 */ 415 if (!debugfs_rename(dir->d_parent, dir, dir->d_parent, buf))
416 printk(KERN_ERR "mac80211: debugfs: failed to rename debugfs "
417 "dir to %s\n", buf);
415 418
416 return 0; 419 return 0;
417} 420}