aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/416-mac80211-fix-netdev-notifier.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-10-11 01:33:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-10-11 01:33:09 +0000
commita4e83614f9fd6e3a6dfa4792617373557acfdc54 (patch)
tree1fafd2be3f6989795ec69425f3dabbade11138b2 /package/mac80211/patches/416-mac80211-fix-netdev-notifier.patch
parent1a5af54e9047e2f063f67f7c0fd8dbd174a99f3d (diff)
downloadmaster-187ad058-a4e83614f9fd6e3a6dfa4792617373557acfdc54.tar.gz
master-187ad058-a4e83614f9fd6e3a6dfa4792617373557acfdc54.tar.bz2
master-187ad058-a4e83614f9fd6e3a6dfa4792617373557acfdc54.zip
mac80211: add rate control rewrite and enhance the performance of the minstrel algorithm for non-mrr configurations
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12948 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/416-mac80211-fix-netdev-notifier.patch')
-rw-r--r--package/mac80211/patches/416-mac80211-fix-netdev-notifier.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/mac80211/patches/416-mac80211-fix-netdev-notifier.patch b/package/mac80211/patches/416-mac80211-fix-netdev-notifier.patch
new file mode 100644
index 0000000000..aee45825ea
--- /dev/null
+++ b/package/mac80211/patches/416-mac80211-fix-netdev-notifier.patch
@@ -0,0 +1,27 @@
+Subject: mac80211: fix debugfs netdev rename
+
+If, for some reason, a netdev has no debugfs dir, we shouldn't
+try to rename that dir.
+
+Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
+Cc: Robin Holt <holt@sgi.com>
+---
+ net/mac80211/debugfs_netdev.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+--- everything.orig/net/mac80211/debugfs_netdev.c 2008-10-08 10:08:23.000000000 +0200
++++ everything/net/mac80211/debugfs_netdev.c 2008-10-08 10:22:52.000000000 +0200
+@@ -481,8 +481,12 @@ static int netdev_notify(struct notifier
+
+ sdata = IEEE80211_DEV_TO_SUB_IF(dev);
+
+- sprintf(buf, "netdev:%s", dev->name);
+ dir = sdata->debugfsdir;
++
++ if (!dir)
++ return 0;
++
++ sprintf(buf, "netdev:%s", dev->name);
+ if (!debugfs_rename(dir->d_parent, dir, dir->d_parent, buf))
+ printk(KERN_ERR "mac80211: debugfs: failed to rename debugfs "
+ "dir to %s\n", buf);