From: Johannes Berg <johannes@sipsolutions.net>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: [PATCH] cfg80211: use debugfs_rename
Date: Thu, 21 Jun 2007 18:30:57 +0200 [thread overview]
Message-ID: <1182443457.21939.47.camel@johannes.berg> (raw)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
net/wireless/core.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
--- wireless-dev.orig/net/wireless/core.c 2007-05-21 18:37:40.541805077 +0200
+++ wireless-dev/net/wireless/core.c 2007-05-21 21:01:03.481611481 +0200
@@ -162,10 +162,15 @@ int cfg80211_dev_rename(struct cfg80211_
/* this will check for collisions */
result = device_rename(&rdev->wiphy.dev, newname);
- if (!result)
+ if (result)
return result;
- /* TODO: do debugfs rename! */
+ if (!debugfs_rename(rdev->wiphy.debugfsdir->d_parent,
+ rdev->wiphy.debugfsdir,
+ rdev->wiphy.debugfsdir->d_parent,
+ newname))
+ printk(KERN_ERR "cfg80211: failed to rename debugfs dir to %s!\n",
+ newname);
nl80211_notify_dev_rename(rdev);
next reply other threads:[~2007-06-22 8:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-21 16:30 Johannes Berg [this message]
2007-07-16 12:34 ` [PATCH] cfg80211: use debugfs_rename Johannes Berg
-- strict thread matches above, loose matches on Subject: below --
2007-05-21 19:04 Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1182443457.21939.47.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox