mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 07:01:44 +02:00
[package] mac80211: add compile fix for pre-2.6.32 kernels
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19692 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
7da3062c4a
commit
95a76a6afc
14
package/mac80211/patches/900-linux-2.6.30-compat.patch
Normal file
14
package/mac80211/patches/900-linux-2.6.30-compat.patch
Normal file
@ -0,0 +1,14 @@
|
||||
--- a/net/wireless/nl80211.c
|
||||
+++ b/net/wireless/nl80211.c
|
||||
@@ -5667,7 +5667,11 @@
|
||||
return err;
|
||||
}
|
||||
|
||||
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
|
||||
err = genlmsg_unicast(wiphy_net(&rdev->wiphy), msg, nlpid);
|
||||
+#else
|
||||
+ err = genlmsg_unicast(msg, nlpid);
|
||||
+#endif
|
||||
if (err < 0)
|
||||
return err;
|
||||
return 0;
|
Loading…
Reference in New Issue
Block a user