mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
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
This commit is contained in:
32
package/mac80211/patches/417-cfg80211-fix-rename.patch
Normal file
32
package/mac80211/patches/417-cfg80211-fix-rename.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
Subject: cfg80211: fix debugfs error handling
|
||||
|
||||
If something goes wrong creating the debugfs dir or when
|
||||
debugfs is not compiled in, the current code might lead to
|
||||
trouble; make it more robust.
|
||||
|
||||
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
|
||||
---
|
||||
net/wireless/core.c | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
--- everything.orig/net/wireless/core.c 2008-10-08 10:13:49.000000000 +0200
|
||||
+++ everything/net/wireless/core.c 2008-10-08 10:19:10.000000000 +0200
|
||||
@@ -185,7 +185,8 @@ int cfg80211_dev_rename(struct cfg80211_
|
||||
if (result)
|
||||
goto out_unlock;
|
||||
|
||||
- if (!debugfs_rename(rdev->wiphy.debugfsdir->d_parent,
|
||||
+ if (rdev->wiphy.debugfsdir &&
|
||||
+ !debugfs_rename(rdev->wiphy.debugfsdir->d_parent,
|
||||
rdev->wiphy.debugfsdir,
|
||||
rdev->wiphy.debugfsdir->d_parent,
|
||||
newname))
|
||||
@@ -318,6 +319,8 @@ int wiphy_register(struct wiphy *wiphy)
|
||||
drv->wiphy.debugfsdir =
|
||||
debugfs_create_dir(wiphy_name(&drv->wiphy),
|
||||
ieee80211_debugfs_dir);
|
||||
+ if (IS_ERR(drv->wiphy.debugfsdir))
|
||||
+ drv->wiphy.debugfsdir = NULL;
|
||||
|
||||
res = 0;
|
||||
out_unlock:
|
||||
Reference in New Issue
Block a user