diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-05-02 13:28:32 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-05-02 13:28:32 +0000 |
commit | f1348b36aace39f8399bcc2f65ad6a7168c1de48 (patch) | |
tree | a53bff36555d86a3aefa464a8599f7fee554c067 | |
parent | 310bef3f8ae19c748e56ab9f75f9de155aee2ea2 (diff) | |
download | upstream-f1348b36aace39f8399bcc2f65ad6a7168c1de48.tar.gz upstream-f1348b36aace39f8399bcc2f65ad6a7168c1de48.tar.bz2 upstream-f1348b36aace39f8399bcc2f65ad6a7168c1de48.zip |
mac80211: fix compile errors on platforms with power management enabled
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@36520 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/mac80211/patches/050-compat_backport.patch | 35 | ||||
-rw-r--r-- | package/mac80211/patches/100-pm_export_symbol.patch | 7 |
2 files changed, 42 insertions, 0 deletions
diff --git a/package/mac80211/patches/050-compat_backport.patch b/package/mac80211/patches/050-compat_backport.patch new file mode 100644 index 0000000000..7503de2990 --- /dev/null +++ b/package/mac80211/patches/050-compat_backport.patch @@ -0,0 +1,35 @@ +--- a/include/linux/compat-3.5.h ++++ b/include/linux/compat-3.5.h +@@ -8,6 +8,32 @@ + + #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) + ++#include <net/netlink.h> ++ ++/* ++ * This backports: ++ * commit 569a8fc38367dfafd87454f27ac646c8e6b54bca ++ * Author: David S. Miller <davem@davemloft.net> ++ * Date: Thu Mar 29 23:18:53 2012 -0400 ++ * ++ * netlink: Add nla_put_be{16,32,64}() helpers. ++ */ ++ ++static inline int nla_put_be16(struct sk_buff *skb, int attrtype, __be16 value) ++{ ++ return nla_put(skb, attrtype, sizeof(__be16), &value); ++} ++ ++static inline int nla_put_be32(struct sk_buff *skb, int attrtype, __be32 value) ++{ ++ return nla_put(skb, attrtype, sizeof(__be32), &value); ++} ++ ++static inline int nla_put_be64(struct sk_buff *skb, int attrtype, __be64 value) ++{ ++ return nla_put(skb, attrtype, sizeof(__be64), &value); ++} ++ + /* + * This backports: + * diff --git a/package/mac80211/patches/100-pm_export_symbol.patch b/package/mac80211/patches/100-pm_export_symbol.patch new file mode 100644 index 0000000000..25fdc8c202 --- /dev/null +++ b/package/mac80211/patches/100-pm_export_symbol.patch @@ -0,0 +1,7 @@ +--- a/net/mac80211/pm.c ++++ b/net/mac80211/pm.c +@@ -1,3 +1,4 @@ ++#include <linux/export.h> + #include <net/mac80211.h> + #include <net/rtnetlink.h> + |